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);