Blame SOURCES/0015-Skip-all-non-rpm-tsi-for-transaction_action-plugins-.patch

9f4a6f
From b4e0cafe70680db24ab3611e0fd4dd95c8311ccc Mon Sep 17 00:00:00 2001
9f4a6f
From: Jaroslav Mracek <jmracek@redhat.com>
9f4a6f
Date: Tue, 26 Apr 2022 11:23:41 +0200
9f4a6f
Subject: [PATCH] Skip all non rpm tsi for transaction_action plugins
9f4a6f
 (rhbug:2023652)
9f4a6f
9f4a6f
It prevent traceback in output when reason change is in transaction
9f4a6f
---
9f4a6f
 plugins/post-transaction-actions.py | 3 +++
9f4a6f
 1 file changed, 3 insertions(+)
9f4a6f
9f4a6f
diff --git a/plugins/post-transaction-actions.py b/plugins/post-transaction-actions.py
9f4a6f
index 05a7841..1520c26 100644
9f4a6f
--- a/plugins/post-transaction-actions.py
9f4a6f
+++ b/plugins/post-transaction-actions.py
9f4a6f
@@ -115,6 +115,9 @@ class PostTransactionActions(dnf.Plugin):
9f4a6f
                 in_ts_items.append(ts_item)
9f4a6f
             elif ts_item.action in dnf.transaction.BACKWARD_ACTIONS:
9f4a6f
                 out_ts_items.append(ts_item)
9f4a6f
+            else:
9f4a6f
+                #  The action is not rpm change. It can be a reason change, therefore we can skip that item
9f4a6f
+                continue
9f4a6f
             all_ts_items.append(ts_item)
9f4a6f
 
9f4a6f
         commands_to_run = []
9f4a6f
-- 
9f4a6f
2.36.1
9f4a6f