xbps_check_is_installed_pkg_by_name: also check for virtual pkgs.

This commit is contained in:
Juan RP 2011-07-17 01:43:56 +02:00
parent e7d331457d
commit 5dfe493a88

View File

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