[Yum-devel] [PATCH 3/7] Inherit reason from install package into txmbr. BZ BZ 961938.

James Antill james at and.org
Tue Jul 16 13:43:29 UTC 2013


---
 yum/depsolve.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/yum/depsolve.py b/yum/depsolve.py
index 52b751b..aaefe9b 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -711,7 +711,10 @@ class Depsolve(object):
             # FIXME: we should probably handle updating multiple packages...
             txmbr = self.tsInfo.addUpdate(best, inst[0])
             txmbr.setAsDep(po=requiringPo)
-            txmbr.reason = "dep"
+            if 'reason' in inst[0].yumdb_info:
+                txmbr.reason = inst[0].yumdb_info.reason
+            else:
+                txmbr.reason = 'dep'
             checkdeps = True
             self._last_req = best
         else:
-- 
1.7.7.6



More information about the Yum-devel mailing list