xbps-query: make -S (show mode) print all properties.

run_depends was being skipped, but there's not any reason
to skip this even if there's -x.

Just print any property available in its pkgdb dictionary.
This commit is contained in:
Juan RP 2020-02-22 11:39:29 +01:00
parent bc9fab5ee8
commit 68747a12e4
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -190,13 +190,6 @@ show_pkg_info(xbps_dictionary_t dict)
keysym = xbps_array_get(all_keys, i); keysym = xbps_array_get(all_keys, i);
keyname = xbps_dictionary_keysym_cstring_nocopy(keysym); keyname = xbps_dictionary_keysym_cstring_nocopy(keysym);
obj = xbps_dictionary_get_keysym(dict, keysym); obj = xbps_dictionary_get_keysym(dict, keysym);
/* ignore objs shown by other targets */
if ((strcmp(keyname, "run_depends") == 0) ||
(strcmp(keyname, "files") == 0) ||
(strcmp(keyname, "dirs") == 0) ||
(strcmp(keyname, "links") == 0))
continue;
/* anything else */ /* anything else */
print_value_obj(keyname, obj, NULL, bold, reset, false); print_value_obj(keyname, obj, NULL, bold, reset, false);
} }