Implemented reverse conflicts for pkgs in pkgdb and transaction.

This commit is contained in:
Juan RP
2015-10-28 05:23:42 +01:00
parent 2c81984f48
commit a13a7fa896
8 changed files with 172 additions and 15 deletions

View File

@ -319,11 +319,10 @@ xbps_transaction_prepare(struct xbps_handle *xhp)
return ENODEV;
}
}
for (i = 0; i < xbps_array_count(pkgs); i++)
xbps_pkg_find_conflicts(xhp, pkgs, xbps_array_get(pkgs, i));
/*
* If there are package conflicts bail out.
*/
xbps_transaction_conflicts(xhp, pkgs);
array = xbps_dictionary_get(xhp->transd, "conflicts");
if (xbps_array_count(array))
return EAGAIN;