xbps-repo: [pkg-list] do not print repo url if index is specified.
This commit is contained in:
parent
f7f4e0bec0
commit
fa7bee1164
@ -51,7 +51,9 @@ repo_pkg_list_cb(struct repository_pool_index *rpi, void *arg, bool *done)
|
|||||||
lpc.state = 0;
|
lpc.state = 0;
|
||||||
lpc.pkgver_len = find_longest_pkgver(rpi->rpi_repo);
|
lpc.pkgver_len = find_longest_pkgver(rpi->rpi_repo);
|
||||||
|
|
||||||
|
if (arg == NULL)
|
||||||
printf("From %s repository ...\n", rpi->rpi_uri);
|
printf("From %s repository ...\n", rpi->rpi_uri);
|
||||||
|
|
||||||
(void)xbps_callback_array_iter(rpi->rpi_repo, list_pkgs_in_dict, &lpc);
|
(void)xbps_callback_array_iter(rpi->rpi_repo, list_pkgs_in_dict, &lpc);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user