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

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