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

@ -121,6 +121,7 @@ xbps_transaction_package_replace(struct xbps_handle *xhp, xbps_array_t pkgs)
*/
xbps_dictionary_set_cstring_nocopy(instd,
"transaction", "remove");
xbps_dictionary_set_bool(instd, "replaced", true);
if (!xbps_array_add_first(pkgs, instd)) {
xbps_object_iterator_release(iter);
free(pkgname);