From 9eebead5d7e0ca77074c18a9cb918fd346190bf8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Mar 2014 09:33:18 +0100 Subject: [PATCH] xbps-query: print the 'hold' object on installed packages. --- NEWS | 2 ++ bin/xbps-query/show-info-files.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 5a141011..85e20ad8 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ xbps-0.34 (???): + * xbps-query(8): now also prints the 'hold' object on installed packages. + * Fix #34 (xbps-uhelper fetch fails to download files from https://alioth.debian.org). The issue is that this HTTP server returns 406 (Not Acceptable) when the HTTP header does not contain the "Accept" field (see diff --git a/bin/xbps-query/show-info-files.c b/bin/xbps-query/show-info-files.c index 0cc34347..86866c82 100644 --- a/bin/xbps-query/show-info-files.c +++ b/bin/xbps-query/show-info-files.c @@ -239,7 +239,7 @@ show_pkg_info_from_metadir(struct xbps_handle *xhp, { xbps_dictionary_t d, pkgdb_d; const char *instdate; - bool autoinst; + bool autoinst, hold; pkg_state_t state; pkgdb_d = xbps_pkgdb_get_pkg(xhp, pkg); @@ -258,6 +258,9 @@ show_pkg_info_from_metadir(struct xbps_handle *xhp, if (xbps_dictionary_get_bool(pkgdb_d, "automatic-install", &autoinst)) xbps_dictionary_set_bool(d, "automatic-install", autoinst); + if (xbps_dictionary_get_bool(pkgdb_d, "hold", &hold)) + xbps_dictionary_set_bool(d, "hold", hold); + xbps_pkg_state_dictionary(pkgdb_d, &state); xbps_set_pkg_state_dictionary(d, state);