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:
Juan RP
2008-12-20 04:53:56 +01:00
parent 835d4e7b7c
commit 6698f3a1ff
3 changed files with 43 additions and 24 deletions

View File

@@ -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 */