xbps_dictionary_from_metadata_plist: if vpkg not found, look for a real pkg.

This commit is contained in:
Juan RP 2012-04-13 09:23:35 +02:00
parent 93c5536e36
commit 8b2c4ed47e

View File

@ -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);