From 8b2c4ed47e60cb9ba8f4e17f192196748681c069 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 13 Apr 2012 09:23:35 +0200 Subject: [PATCH] xbps_dictionary_from_metadata_plist: if vpkg not found, look for a real pkg. --- lib/plist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/plist.c b/lib/plist.c index c220470e..5c2b4cb1 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -279,7 +279,10 @@ xbps_dictionary_from_metadata_plist(const char *pkgname, if (access(plistf, R_OK) == -1) { pkgd = xbps_find_virtualpkg_dict_installed(pkgname, false); - if (prop_object_type(pkgd) == PROP_TYPE_DICTIONARY) { + if (pkgd == NULL) + pkgd = xbps_find_pkg_dict_installed(pkgname, false); + + if (pkgd != NULL) { free(plistf); prop_dictionary_get_cstring_nocopy(pkgd, "pkgname", &savedpkgname);