libxbps: fix eudev-libgudev -> libgudev fallout.

Packages to be replaced must be collected *before* checking for
broken reverse dependencies, otherwise them will always be detected
as broken.
This commit is contained in:
Juan RP
2015-10-14 11:46:56 +02:00
parent c688808b2c
commit c457b594aa
4 changed files with 16 additions and 8 deletions

View File

@@ -166,6 +166,10 @@ xbps_transaction_revdeps(struct xbps_handle *xhp, xbps_array_t pkgs)
* the transaction.
*/
if (strcmp(tract, "remove") == 0) {
if (xbps_dictionary_get(obj, "replaced")) {
free(pkgname);
continue;
}
if (xbps_find_pkg_in_array(pkgs, pkgname, "remove")) {
free(pkgname);
continue;