Blame SOURCES/0034-libdnf-transaction-TransactionItem-Set-short-action-.patch

1a8671
From c303b7c3723f3e9fbc43963a62237ea17516fc6b Mon Sep 17 00:00:00 2001
1a8671
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= <lhrazky@redhat.com>
1a8671
Date: Thu, 17 Feb 2022 18:30:14 +0100
1a8671
Subject: [PATCH 34/34] libdnf/transaction/TransactionItem: Set short action
1a8671
 for Reason Change
1a8671
1a8671
Sets the "short" (one letter) representation of the Reason Change action
1a8671
to "C".
1a8671
1a8671
This was likely not ever used before as the only way to create a
1a8671
transaction with a reason change and something else is rolling back
1a8671
multiple transactions, which was broken.
1a8671
---
1a8671
 libdnf/transaction/TransactionItem.cpp | 3 +--
1a8671
 1 file changed, 1 insertion(+), 2 deletions(-)
1a8671
1a8671
diff --git a/libdnf/transaction/TransactionItem.cpp b/libdnf/transaction/TransactionItem.cpp
1a8671
index 3b43d1f1..4358038e 100644
1a8671
--- a/libdnf/transaction/TransactionItem.cpp
1a8671
+++ b/libdnf/transaction/TransactionItem.cpp
1a8671
@@ -51,8 +51,7 @@ static const std::map< TransactionItemAction, std::string > transactionItemActio
1a8671
     {TransactionItemAction::REMOVE, "E"},
1a8671
     {TransactionItemAction::REINSTALL, "R"},
1a8671
     {TransactionItemAction::REINSTALLED, "R"},
1a8671
-    // TODO: replace "?" with something better
1a8671
-    {TransactionItemAction::REASON_CHANGE, "?"},
1a8671
+    {TransactionItemAction::REASON_CHANGE, "C"},
1a8671
 };
1a8671
 
1a8671
 /*
1a8671
-- 
1a8671
2.31.1
1a8671