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:
@ -299,6 +299,14 @@ xbps_transaction_prepare(struct xbps_handle *xhp)
|
||||
}
|
||||
xbps_object_release(edges);
|
||||
|
||||
/*
|
||||
* Check for packages to be replaced.
|
||||
*/
|
||||
if ((rv = xbps_transaction_package_replace(xhp, pkgs)) != 0) {
|
||||
xbps_object_release(xhp->transd);
|
||||
xhp->transd = NULL;
|
||||
return rv;
|
||||
}
|
||||
/*
|
||||
* If there are missing deps or revdeps bail out.
|
||||
*/
|
||||
@ -330,14 +338,6 @@ xbps_transaction_prepare(struct xbps_handle *xhp)
|
||||
return ENOEXEC;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Check for packages to be replaced.
|
||||
*/
|
||||
if ((rv = xbps_transaction_package_replace(xhp, pkgs)) != 0) {
|
||||
xbps_object_release(xhp->transd);
|
||||
xhp->transd = NULL;
|
||||
return rv;
|
||||
}
|
||||
/*
|
||||
* Add transaction stats for total download/installed size,
|
||||
* number of packages to be installed, updated, configured
|
||||
|
Reference in New Issue
Block a user