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