--- 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 _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel