xbps-bin: add two new targets 'show-deps' and 'show-revdeps" to print

dependencies and reverse dependencies of a package, respectively.

'xbps-bin show' no longer prints the deps anymore.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20090821231219-n26o21xcxor46nk1
This commit is contained in:
Juan RP
2009-08-22 01:12:19 +02:00
parent f6ac35e110
commit 6d84cde6f1
5 changed files with 139 additions and 10 deletions

View File

@ -97,14 +97,6 @@ show_pkg_info(prop_dictionary_t dict)
if (obj && prop_object_type(obj) == PROP_TYPE_STRING)
printf("SHA256: %s\n", prop_string_cstring_nocopy(obj));
obj = prop_dictionary_get(dict, "run_depends");
if (obj && prop_object_type(obj) == PROP_TYPE_ARRAY) {
printf("Dependencies:\n");
(void)xbps_callback_array_iter_in_dict(dict, "run_depends",
list_strings_in_array, NULL);
printf("\n\n");
}
obj = prop_dictionary_get(dict, "conf_files");
if (obj && prop_object_type(obj) == PROP_TYPE_ARRAY) {
printf("Configuration files:\n");