From 5dfe493a883d2acd72cca50baf1e61bf117398f9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 17 Jul 2011 01:43:56 +0200 Subject: [PATCH] xbps_check_is_installed_pkg_by_name: also check for virtual pkgs. --- lib/util.c | 3 +++ 1 file changed, 3 insertions(+) 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;