xbps_dictionary_from_metadata_plist: if vpkg not found, look for a real pkg.
This commit is contained in:
parent
93c5536e36
commit
8b2c4ed47e
@ -279,7 +279,10 @@ xbps_dictionary_from_metadata_plist(const char *pkgname,
|
|||||||
|
|
||||||
if (access(plistf, R_OK) == -1) {
|
if (access(plistf, R_OK) == -1) {
|
||||||
pkgd = xbps_find_virtualpkg_dict_installed(pkgname, false);
|
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);
|
free(plistf);
|
||||||
prop_dictionary_get_cstring_nocopy(pkgd,
|
prop_dictionary_get_cstring_nocopy(pkgd,
|
||||||
"pkgname", &savedpkgname);
|
"pkgname", &savedpkgname);
|
||||||
|
Loading…
Reference in New Issue
Block a user