]> git.ipfire.org Git - pakfire.git/commitdiff
transaction: Changing packages is a re-install
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Sep 2023 16:00:22 +0000 (16:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Sep 2023 16:00:22 +0000 (16:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/transaction.c

index 4042a8d578d4d5a3a5ce07b301d482c3942c1eed..a56ebae3b6e0ce11c3403c9319a50f9e5ab69a70 100644 (file)
@@ -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) {