Description of problem: After updating to today's rawhide, further yum updates result in tracebacks. Version-Release number of selected component (if applicable): yum-3.4.3-88.fc20.noarch How reproducible: Seems to happen every yum update. Actual results: [root@bruno bruno]# yum update Loaded plugins: aliases, changelog, keys, list-data, merge-conf, post- : transaction-actions, priorities, protectbase, remove-with- : leaves, rpm-warm-cache, show-leaves, tmprepo, tsflags, verify, : versionlock 0 packages excluded due to repository protections Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 316, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 126, in main result, resultmsgs = base.doCommands() File "/usr/share/yum-cli/cli.py", line 522, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 489, in doCommand ret = base.updatePkgs(extcmds, update_to=(basecmd == 'update-to')) File "/usr/share/yum-cli/cli.py", line 955, in updatePkgs self.update() File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4887, in update tx_return.extend(self._at_groupupgrade('@' + igrp)) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4359, in _at_groupupgrade return self._at_groupinstall(pattern, upgrade=True) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4348, in _at_groupinstall for group in self.comps.return_groups(group_string): File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1053, in <lambda> comps = property(fget=lambda self: self._getGroups(), File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 927, in _getGroups self._comps.add(groupfile) File "/usr/lib/python2.7/site-packages/yum/comps.py", line 800, in add environment = Environment(elem) File "/usr/lib/python2.7/site-packages/yum/comps.py", line 301, in __init__ self.parse(elem) File "/usr/lib/python2.7/site-packages/yum/comps.py", line 359, in parse self.parse_option_list(child) File "/usr/lib/python2.7/site-packages/yum/comps.py", line 376, in parse_option_list default = parse_boolean(defopt) File "/usr/lib/python2.7/site-packages/yum/comps.py", line 32, in parse_boolean return BOOLEAN_STATES.get(strng.lower(), False) AttributeError: 'NoneType' object has no attribute 'lower'
Downgrading to yum-3.4.3-87.fc20 works around the problem.
Well, crap. My fault. 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
I tested the patch and it fixes the problem I was seeing.
Building as -89.
yum-3.4.3-89.fc20 does fix the problem. And you can use 'yum update yum' to update to the fixed version.
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle. Changing version to '20'. More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora20
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.