[Yum-devel] [PATCH] Use yumdb_info.from_repo in listTransaction for removes
James Antill
james at and.org
Fri Oct 16 21:26:26 UTC 2009
---
output.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/output.py b/output.py
index e462646..996b89a 100755
--- a/output.py
+++ b/output.py
@@ -912,7 +912,10 @@ class YumOutput:
def _add_line(lines, data, a_wid, po, obsoletes=[]):
(n,a,e,v,r) = po.pkgtup
evr = po.printVer()
- repoid = po.repoid
+ if po.repoid == 'installed' and 'from_repo' in po.yumdb_info:
+ repoid = "@%s" % po.yumdb_info.from_repo
+ else:
+ repoid = po.repoid
pkgsize = float(po.size)
size = self.format_number(pkgsize)
--
1.6.2.5
More information about the Yum-devel
mailing list