Make xbps_callback_array_in_dict() return a bool.
The func cb accepted also returns a bool now. --HG-- extra : convert_revision : 1adf9a54e111f5d7f3dd78a829c3cf680d15f769
This commit is contained in:
@@ -291,8 +291,9 @@ main(int argc, char **argv)
|
||||
usage();
|
||||
|
||||
dbdict = prop_dictionary_internalize_from_file(dbfile);
|
||||
xbps_callback_array_iter_in_dict(dbdict,
|
||||
"packages", xbps_list_pkgs_in_dict);
|
||||
if (!xbps_callback_array_iter_in_dict(dbdict,
|
||||
"packages", xbps_list_pkgs_in_dict))
|
||||
exit(EINVAL);
|
||||
|
||||
} else if (strcmp(argv[1], "version") == 0) {
|
||||
/* Prints version of an installed package */
|
||||
|
||||
Reference in New Issue
Block a user