[Yum-devel] [PATCH] Allow environment options to have a 'default=true' option, for use in the anaconda UI.
Bill Nottingham
notting at redhat.com
Thu May 2 17:30:32 UTC 2013
James Antill (james at fedoraproject.org) said:
> Yeh, looks fine to me. Pushed, and building -88 in rawhide.
Here's the fix I'm building as -89. Sorry about that.
Bill
-------------- next part --------------
diff -up yum-3.4.3/yum/comps.py.old yum-3.4.3/yum/comps.py
--- yum-3.4.3/yum/comps.py.old 2013-05-02 11:02:28.000000000 -0400
+++ yum-3.4.3/yum/comps.py 2013-05-02 11:03:20.438942937 -0400
@@ -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 anaconda-patches
mailing list