xbps-bin(8): 'check' target now works with virtual packages.
This commit is contained in:
@ -108,6 +108,10 @@ check_pkg_integrity(const char *pkgname)
|
||||
xhp = xbps_handle_get();
|
||||
|
||||
pkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
||||
if (pkgd == NULL) {
|
||||
/* try looking for a virtual pkg */
|
||||
pkgd = xbps_find_virtualpkg_dict_installed(pkgname, false);
|
||||
}
|
||||
if (pkgd == NULL) {
|
||||
printf("Package %s is not installed.\n", pkgname);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user