xbps-{install,query}: --repository now accepts relative paths in local repos.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*-
|
||||
* Copyright (c) 2008-2014 Juan Romero Pardines.
|
||||
* Copyright (c) 2008-2015 Juan Romero Pardines.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@ -170,10 +170,7 @@ main(int argc, char **argv)
|
||||
break;
|
||||
case 'R':
|
||||
if (optarg != NULL) {
|
||||
if (xh.repositories == NULL)
|
||||
xh.repositories = xbps_array_create();
|
||||
|
||||
xbps_array_add_cstring_nocopy(xh.repositories, optarg);
|
||||
xbps_repo_store(&xh, optarg);
|
||||
}
|
||||
repo_mode = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user