Skip to content

Commit

Permalink
history: Keep reinstall action when reverting merged transaction items
Browse files Browse the repository at this point in the history
When we have a sequence of transactions involving the reinstallation, upgrading, or downgrading of a package, which ultimately results in the package remaining at the same version, the expected behavior, when reverting the entire merged transaction, is that the package is reinstalled. This differs from the previous behavior, where the package would be removed from the system.

Resolves: https://issues.redhat.com/browse/RHEL-17494
  • Loading branch information
jan-kolarik committed Feb 8, 2024
1 parent 0b4b8cc commit d19a75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnf/cli/commands/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def _revert_transaction(self, trans):
"Downgrade": "Upgraded",
"Downgraded": "Upgrade",
"Reinstalled": "Reinstall",
"Reinstall": "Reinstalled",
"Reinstall": "Reinstall",
"Obsoleted": "Install",
"Obsolete": "Obsoleted",
"Reason Change": "Reason Change",
Expand Down

0 comments on commit d19a75f

Please sign in to comment.