dcavalca / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

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

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