[yum-commits] yum/comps.py

James Antill james at osuosl.org
Wed May 15 04:10:30 UTC 2013


 yum/comps.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 73d14b707a47d035bf0a4d7e5891b87c60e0a902
Author: James Antill <james at and.org>
Date:   Wed May 15 00:10:07 2013 -0400

    Filter out empty package names in groups.

diff --git a/yum/comps.py b/yum/comps.py
index b9c6202..aa13b9a 100755
--- a/yum/comps.py
+++ b/yum/comps.py
@@ -201,6 +201,10 @@ class Group(CompsObj):
                     continue
 
                 package = child.text
+                if not package:
+                    #  Ignore this too, or we end up doing:
+                    # .searchNevra(name=None)
+                    continue
                 if genre == 'mandatory':
                     self.mandatory_packages[package] = 1
                 elif genre == 'default':


More information about the Yum-commits mailing list