lib: fix setting automatic-install on replaced packages that are updated in the same transaction
This commit is contained in:
parent
d992fd1617
commit
67725a656c
@ -125,10 +125,14 @@ xbps_transaction_check_replaces(struct xbps_handle *xhp, xbps_array_t pkgs)
|
||||
* package that should be replaced is also in the
|
||||
* transaction and it's going to be updated.
|
||||
*/
|
||||
if (!xbps_dictionary_set_bool(reppkgd, "automatic-install", instd_auto)) {
|
||||
if (instd_auto) {
|
||||
if (!xbps_dictionary_set_bool(obj, "automatic-install", instd_auto)) {
|
||||
xbps_object_iterator_release(iter);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
xbps_dictionary_remove(obj, "automatic-install");
|
||||
}
|
||||
if (!xbps_dictionary_set_bool(reppkgd, "replaced", true)) {
|
||||
xbps_object_iterator_release(iter);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user