[Yum-devel] [PATCH 7/7] Fix downgrade keeping .reason, note that remove+install doesn't. BZ 961938.
James Antill
james at and.org
Tue Jul 16 13:43:33 UTC 2013
---
yum/transactioninfo.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/yum/transactioninfo.py b/yum/transactioninfo.py
index 5e8659d..d34f3a8 100644
--- a/yum/transactioninfo.py
+++ b/yum/transactioninfo.py
@@ -530,6 +530,10 @@ class TransactionData:
if not atxmbr: # Fail?
self.remove(itxmbr.pkgtup)
return None
+
+ if 'reason' in oldpo.yumdb_info:
+ atxmbr.reason = oldpo.yumdb_info.reason
+
atxmbr.relatedto.append((oldpo, 'downgrades'))
atxmbr.downgrades.append(oldpo)
--
1.7.7.6
More information about the Yum-devel
mailing list