xbps-repo: [pkg-list] do not print repo url if index is specified.

This commit is contained in:
Juan RP 2012-05-29 16:17:48 +02:00
parent f7f4e0bec0
commit fa7bee1164

View File

@ -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;
}