From fa7bee116426b67ef5a85dfcd8755f1e9be9bac3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 29 May 2012 16:17:48 +0200 Subject: [PATCH] xbps-repo: [pkg-list] do not print repo url if index is specified. --- bin/xbps-repo/list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/xbps-repo/list.c b/bin/xbps-repo/list.c index 42ffbb41..60e4782b 100644 --- a/bin/xbps-repo/list.c +++ b/bin/xbps-repo/list.c @@ -51,7 +51,9 @@ repo_pkg_list_cb(struct repository_pool_index *rpi, void *arg, bool *done) lpc.state = 0; lpc.pkgver_len = find_longest_pkgver(rpi->rpi_repo); - printf("From %s repository ...\n", rpi->rpi_uri); + if (arg == NULL) + printf("From %s repository ...\n", rpi->rpi_uri); + (void)xbps_callback_array_iter(rpi->rpi_repo, list_pkgs_in_dict, &lpc); return 0; }