[yum-commits] yum/comps.py
James Antill
james at osuosl.org
Thu May 2 17:30:44 UTC 2013
yum/comps.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 365d93c2c80b12fff7b6133c727fbfcd05511ff6
Author: Bill Nottingham <notting at redhat.com>
Date: Thu May 2 13:30:25 2013 -0400
Fix default option for groups parsing.
diff --git a/yum/comps.py b/yum/comps.py
index d2deb4a..b9c6202 100755
--- a/yum/comps.py
+++ b/yum/comps.py
@@ -373,7 +373,10 @@ class Environment(CompsObj):
optionid = child.text
self._options[optionid] = 1
defopt = child.attrib.get('default')
- default = parse_boolean(defopt)
+ if defopt:
+ default = parse_boolean(defopt)
+ else:
+ default = False
if default:
self._defaultoptions[optionid] = 1
More information about the Yum-commits
mailing list