xbps-repo: also print binpkg compression type in the show target.
Now it looks like: $ xbps-repo show xbps-devel Fetching info from: /storage/xbps/packages Filename: xbps-devel-20091128.i686.xbps (size: 69K) SHA256: 2c54a61fbd128097692edc19a7c17bfb10d93b3f055b04171cd1e4d97cde79df Compression type: xz Package: xbps-devel Installed size: 216K Maintainer: Juan RP [xtraeme@gmail.com] Architecture: i686 Version: 20091128 Description: The XBPS package system (development branch) The XBPS package system. A new, fast, from scratch and simple binary package manager. This packages includes code from a development branch available from https://launchpad.net/xbps $ --HG-- extra : convert_revision : xtraeme%40gmail.com-20091128051134-qzqqnwd76tcxgxb0
This commit is contained in:
@ -73,6 +73,11 @@ show_pkg_info(prop_dictionary_t dict)
|
||||
assert(dict != NULL);
|
||||
assert(prop_dictionary_count(dict) != 0);
|
||||
|
||||
obj = prop_dictionary_get(dict, "archive-compression-type");
|
||||
if (obj && prop_object_type(obj) == PROP_TYPE_STRING)
|
||||
printf("Compression type: %s\n",
|
||||
prop_string_cstring_nocopy(obj));
|
||||
|
||||
obj = prop_dictionary_get(dict, "pkgname");
|
||||
if (obj && prop_object_type(obj) == PROP_TYPE_STRING)
|
||||
printf("Package: %s\n", prop_string_cstring_nocopy(obj));
|
||||
|
Reference in New Issue
Block a user