xbps_check_is_installed_pkg_by_name: also check for virtual pkgs.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user