xbps-repo: 'sync' and 'pkg-list' target now accept a repository URI argument.

If set, only the matching repository will be used for the task.
This commit is contained in:
Juan RP
2012-06-01 15:02:06 +02:00
parent ba84f82e66
commit 981b13bd5a
8 changed files with 57 additions and 57 deletions

View File

@@ -268,7 +268,7 @@ main(int argc, char **argv)
if (argc < 2)
usage(true);
if (sync && ((rv = xbps_rpool_sync()) != 0))
if (sync && ((rv = xbps_rpool_sync(NULL)) != 0))
goto out;
for (i = 1; i < argc; i++)
@@ -282,7 +282,7 @@ main(int argc, char **argv)
if (argc < 2)
usage(true);
if (sync && ((rv = xbps_rpool_sync()) != 0))
if (sync && ((rv = xbps_rpool_sync(NULL)) != 0))
goto out;
for (i = 1; i < argc; i++)
@@ -351,7 +351,7 @@ main(int argc, char **argv)
if (argc != 1)
usage(true);
if (sync && ((rv = xbps_rpool_sync()) != 0))
if (sync && ((rv = xbps_rpool_sync(NULL)) != 0))
goto out;
rv = dist_upgrade(yes, dry_run, show_download_pkglist_url);