xbps-query: print the 'hold' object on installed packages.
This commit is contained in:
parent
d0a9bbb912
commit
9eebead5d7
2
NEWS
2
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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user