Skip to content

Commit

Permalink
libdnf/transaction/TransactionItem: Set short action for Reason Change
Browse files Browse the repository at this point in the history
Sets the "short" (one letter) representation of the Reason Change action
to "C".

This was likely not ever used before as the only way to create a
transaction with a reason change and something else is rolling back
multiple transactions, which was broken.
  • Loading branch information
Lukáš Hrázký authored and jrohel committed Feb 22, 2022
1 parent 25aa893 commit 9b7f464
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libdnf/transaction/TransactionItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ static const std::map< TransactionItemAction, std::string > transactionItemActio
{TransactionItemAction::REMOVE, "E"},
{TransactionItemAction::REINSTALL, "R"},
{TransactionItemAction::REINSTALLED, "R"},
// TODO: replace "?" with something better
{TransactionItemAction::REASON_CHANGE, "?"},
{TransactionItemAction::REASON_CHANGE, "C"},
};

/*
Expand Down

0 comments on commit 9b7f464

Please sign in to comment.