xbps-bin(8): 'check' target now works with virtual packages.
This commit is contained in:
parent
43ab2ec083
commit
2ff2d1f68a
2
NEWS
2
NEWS
@ -1,5 +1,7 @@
|
|||||||
xbps-0.10.2 (???):
|
xbps-0.10.2 (???):
|
||||||
|
|
||||||
|
* xbps-bin(8): the 'check' target now works virtual packages.
|
||||||
|
|
||||||
* libxbps: failed to properly match installed virtualpkgs that were
|
* libxbps: failed to properly match installed virtualpkgs that were
|
||||||
dependencies in a transaction, therefore resulting in real packages
|
dependencies in a transaction, therefore resulting in real packages
|
||||||
being reinstalled and replacing installed virtual packages.
|
being reinstalled and replacing installed virtual packages.
|
||||||
|
@ -108,6 +108,10 @@ check_pkg_integrity(const char *pkgname)
|
|||||||
xhp = xbps_handle_get();
|
xhp = xbps_handle_get();
|
||||||
|
|
||||||
pkgd = xbps_find_pkg_dict_installed(pkgname, false);
|
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) {
|
if (pkgd == NULL) {
|
||||||
printf("Package %s is not installed.\n", pkgname);
|
printf("Package %s is not installed.\n", pkgname);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user