xbps-bin: implement full support for the 'show' target.

This will try to show the package information by looking in
all repositories registered. The first one that has the package
info wins.

--HG--
extra : convert_revision : 33b93fd115a765d696af76ca20c1669ef277cd35
This commit is contained in:
Juan RP
2008-12-20 05:49:41 +01:00
parent 6698f3a1ff
commit c3c632e387
4 changed files with 86 additions and 22 deletions

View File

@@ -292,7 +292,7 @@ main(int argc, char **argv)
dbdict = prop_dictionary_internalize_from_file(dbfile);
if (!xbps_callback_array_iter_in_dict(dbdict,
"packages", xbps_list_pkgs_in_dict))
"packages", xbps_list_pkgs_in_dict, NULL))
exit(EINVAL);
} else if (strcmp(argv[1], "version") == 0) {