xbps-bin(8): 'check' target now works with virtual packages.

This commit is contained in:
Juan RP 2011-10-27 11:02:55 +02:00
parent 43ab2ec083
commit 2ff2d1f68a
2 changed files with 6 additions and 0 deletions

2
NEWS
View File

@ -1,5 +1,7 @@
xbps-0.10.2 (???):
* xbps-bin(8): the 'check' target now works virtual packages.
* libxbps: failed to properly match installed virtualpkgs that were
dependencies in a transaction, therefore resulting in real packages
being reinstalled and replacing installed virtual packages.

View File

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