Introduce xbps_callback_array_iter_in_dict().
--HG-- extra : convert_revision : e0696de04df785d99ae1748a2d972a74e04c774f
This commit is contained in:
parent
742ae607c4
commit
e992ee5c83
4 changed files with 60 additions and 44 deletions
|
@ -292,7 +292,8 @@ main(int argc, char **argv)
|
|||
usage();
|
||||
|
||||
dbdict = prop_dictionary_internalize_from_file(dbfile);
|
||||
xbps_list_pkgs_in_dict(dbdict, "packages_installed");
|
||||
xbps_callback_array_iter_in_dict(dbdict,
|
||||
"packages_installed", xbps_list_pkgs_in_dict);
|
||||
|
||||
} else if (strcmp(argv[1], "version") == 0) {
|
||||
/* Prints version of an installed package */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue