xbps-query(8): -L now prints all repos, including non working repos (close #11).

This commit is contained in:
Juan RP
2013-07-26 11:42:52 +02:00
parent e0643acbb0
commit 20f2d10527
5 changed files with 34 additions and 17 deletions

View File

@ -156,8 +156,7 @@ repo_list_uri_cb(struct xbps_repo *repo, void *arg, bool *done)
(void)arg;
(void)done;
printf("%s (%u packages)\n", repo->uri,
xbps_dictionary_count(repo->idx));
printf("%5zd %s\n", repo->idx ? (ssize_t)xbps_dictionary_count(repo->idx) : -1, repo->uri);
return 0;
}