diff --git a/lib/util.c b/lib/util.c index e7393c79..ee6fb04c 100644 --- a/lib/util.c +++ b/lib/util.c @@ -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;