From 737dd16a0a1687b1058368d133030891a1c27947 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 21 Sep 2023 16:00:22 +0000 Subject: [PATCH] transaction: Changing packages is a re-install Signed-off-by: Michael Tremer --- src/libpakfire/transaction.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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) { -- 2.47.2