From 2a7700bc948f6bb98d3a0ebc8984617f320e4444 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Dec 2012 06:15:18 +0100 Subject: [PATCH] xbps-query: also print pkg state in local mode. --- bin/xbps-query/show-info-files.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/xbps-query/show-info-files.c b/bin/xbps-query/show-info-files.c index c82e8f9a..43d7b1e7 100644 --- a/bin/xbps-query/show-info-files.c +++ b/bin/xbps-query/show-info-files.c @@ -221,6 +221,7 @@ show_pkg_info_from_metadir(struct xbps_handle *xhp, prop_dictionary_t d, pkgdb_d; const char *instdate; bool autoinst; + pkg_state_t state; pkgdb_d = xbps_pkgdb_get_pkg(xhp, pkg); 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)) 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) show_pkg_info(d); else