From d319816fa22cc05d36837f0584ab736925a3e771 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 23 Jul 2012 10:21:32 +0200 Subject: [PATCH] xbps-bin: fixed regression in show target for vpkgs. --- bin/xbps-bin/show-info-files.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/xbps-bin/show-info-files.c b/bin/xbps-bin/show-info-files.c index a9eaeb40..c8e671ab 100644 --- a/bin/xbps-bin/show-info-files.c +++ b/bin/xbps-bin/show-info-files.c @@ -40,14 +40,15 @@ show_pkg_info_from_metadir(struct xbps_handle *xhp, const char *option) { prop_dictionary_t d, pkgdb_d; - const char *instdate; + const char *instdate, *pname; bool autoinst; d = xbps_dictionary_from_metadata_plist(xhp, pkgname, XBPS_PKGPROPS); if (d == NULL) return EINVAL; - pkgdb_d = xbps_pkgdb_get_pkgd(xhp, pkgname, false); + prop_dictionary_get_cstring_nocopy(d, "pkgname", &pname); + pkgdb_d = xbps_pkgdb_get_pkgd(xhp, pname, false); if (pkgdb_d == NULL) { prop_object_release(d); return EINVAL;