[Yum-devel] [PATCH 1/3] Convert missed direct usage of from_repo to use ui_from_repo
James Antill
james at and.org
Mon Nov 23 16:04:57 UTC 2009
---
yumcommands.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/yumcommands.py b/yumcommands.py
index d13f84a..b809216 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -210,10 +210,7 @@ def _add_pkg_simple_list_lens(data, pkg, indent=''):
This "knows" about simpleList and printVer. """
na = len(pkg.name) + 1 + len(pkg.arch) + len(indent)
ver = len(pkg.version) + 1 + len(pkg.release)
- if pkg.repoid == 'installed' and 'from_repo' in pkg.yumdb_info:
- rid = len(pkg.yumdb_info.from_repo) + 1
- else:
- rid = len(pkg.repoid)
+ rid = len(pkg.ui_from_repo)
if pkg.epoch != '0':
ver += len(pkg.epoch) + 1
for (d, v) in (('na', na), ('ver', ver), ('rid', rid)):
--
1.6.2.5
More information about the Yum-devel
mailing list