[yum-commits] Branch 'yum-3_2_X' - yum/packages.py
James Antill
james at osuosl.org
Thu May 13 19:24:02 UTC 2010
yum/packages.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4707d410a42358709cf6f38de6571983ea63c70d
Author: James Antill <james at and.org>
Date: Thu May 13 14:29:34 2010 -0400
Filter empty provides/etc. in the non-pritable case too.
diff --git a/yum/packages.py b/yum/packages.py
index d603886..4687cd3 100644
--- a/yum/packages.py
+++ b/yum/packages.py
@@ -1233,7 +1233,7 @@ class YumHeaderPackage(YumAvailablePackage):
for tag in tag2prco:
name = hdr[getattr(rpm, 'RPMTAG_%sNAME' % tag)]
name = map(misc.share_data, name)
- if name is None:
+ if not name: # empty or none or whatever, doesn't matter
continue
lst = hdr[getattr(rpm, 'RPMTAG_%sFLAGS' % tag)]
More information about the Yum-commits
mailing list