xbps_check_is_installed_pkg_by_name: also check for virtual pkgs.
This commit is contained in:
parent
e7d331457d
commit
5dfe493a88
@ -233,6 +233,9 @@ xbps_check_is_installed_pkg_by_name(const char *pkgname)
|
||||
assert(pkgname != NULL);
|
||||
|
||||
pkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
||||
if (pkgd == NULL)
|
||||
pkgd = xbps_find_virtualpkg_dict_installed(pkgname, false);
|
||||
|
||||
if (pkgd) {
|
||||
prop_object_release(pkgd);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user