From: Michael Tremer Date: Thu, 21 Sep 2023 16:00:22 +0000 (+0000) Subject: transaction: Changing packages is a re-install X-Git-Tag: 0.9.30~1669 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=737dd16a0a1687b1058368d133030891a1c27947;p=pakfire.git transaction: Changing packages is a re-install Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/transaction.c b/src/libpakfire/transaction.c index 4042a8d57..a56ebae3b 100644 --- a/src/libpakfire/transaction.c +++ b/src/libpakfire/transaction.c @@ -86,11 +86,14 @@ static enum pakfire_steps pakfire_transaction_get_step_type( struct pakfire_transaction* transaction, struct pakfire_package* pkg) { const Id id = pakfire_package_id(pkg); - int type = transaction_type(transaction->transaction, id, SOLVER_TRANSACTION_SHOW_ACTIVE); + const int flags = SOLVER_TRANSACTION_CHANGE_IS_REINSTALL; + + int type = transaction_type(transaction->transaction, id, + SOLVER_TRANSACTION_SHOW_ACTIVE|flags); // If this step is being ignored in active mode, we try passive mode if (type == SOLVER_TRANSACTION_IGNORE) - type = transaction_type(transaction->transaction, id, 0); + type = transaction_type(transaction->transaction, id, flags); // Translate solver types into our own types switch (type) {