[yum-git] Branch 'yum-3_2_X' - yum/update_md.py
James Antill
james at linux.duke.edu
Mon Aug 4 06:23:24 UTC 2008
yum/update_md.py | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit ae716ee38141866f4e3f48848120968f696eac0f
Author: James Antill <james at and.org>
Date: Mon Aug 4 02:16:48 2008 -0400
Don't show ppc packages on .i386 in UpdateNotice.__str__
diff --git a/yum/update_md.py b/yum/update_md.py
index 06c8c96..8b2c2eb 100644
--- a/yum/update_md.py
+++ b/yum/update_md.py
@@ -109,9 +109,14 @@ class UpdateNotice(object):
subsequent_indent=' ' * 12 + ': ')
head += "Description : %s\n" % '\n'.join(desc)
+ # Get a list of arches we care about:
+ arches = set(rpmUtils.arch.getArchList())
+
filelist = " Files :"
for pkg in self._md['pkglist']:
for file in pkg['packages']:
+ if file['arch'] not in arches:
+ continue
filelist += " %s\n\t :" % file['filename']
head += filelist[:-1].rstrip()
More information about the Yum-cvs-commits
mailing list