xbps-query: also print pkg state in local mode.
This commit is contained in:
parent
fed10ff211
commit
2a7700bc94
@ -221,6 +221,7 @@ show_pkg_info_from_metadir(struct xbps_handle *xhp,
|
|||||||
prop_dictionary_t d, pkgdb_d;
|
prop_dictionary_t d, pkgdb_d;
|
||||||
const char *instdate;
|
const char *instdate;
|
||||||
bool autoinst;
|
bool autoinst;
|
||||||
|
pkg_state_t state;
|
||||||
|
|
||||||
pkgdb_d = xbps_pkgdb_get_pkg(xhp, pkg);
|
pkgdb_d = xbps_pkgdb_get_pkg(xhp, pkg);
|
||||||
if (pkgdb_d == NULL)
|
if (pkgdb_d == NULL)
|
||||||
@ -238,6 +239,9 @@ show_pkg_info_from_metadir(struct xbps_handle *xhp,
|
|||||||
if (prop_dictionary_get_bool(pkgdb_d, "automatic-install", &autoinst))
|
if (prop_dictionary_get_bool(pkgdb_d, "automatic-install", &autoinst))
|
||||||
prop_dictionary_set_bool(d, "automatic-install", autoinst);
|
prop_dictionary_set_bool(d, "automatic-install", autoinst);
|
||||||
|
|
||||||
|
xbps_pkg_state_dictionary(pkgdb_d, &state);
|
||||||
|
xbps_set_pkg_state_dictionary(d, state);
|
||||||
|
|
||||||
if (option == NULL)
|
if (option == NULL)
|
||||||
show_pkg_info(d);
|
show_pkg_info(d);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user