Bug 958531 - Traceback when doing yum update
Summary: Traceback when doing yum update
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-01 18:49 UTC by Bruno Wolff III
Modified: 2015-06-30 01:22 UTC (History)
8 users (show)

Fixed In Version: yum-3.4.3-89.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-30 01:22:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Bruno Wolff III 2013-05-01 18:49:37 UTC
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'

Comment 1 Bruno Wolff III 2013-05-02 14:30:42 UTC
Downgrading to yum-3.4.3-87.fc20 works around the problem.

Comment 2 Bill Nottingham 2013-05-02 15:03:48 UTC
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

Comment 3 Bruno Wolff III 2013-05-02 16:00:29 UTC
I tested the patch and it fixes the problem I was seeing.

Comment 4 Bill Nottingham 2013-05-02 17:26:08 UTC
Building as -89.

Comment 5 Bruno Wolff III 2013-05-02 18:28:21 UTC
yum-3.4.3-89.fc20 does fix the problem. And you can use 'yum update yum' to update to the fixed version.

Comment 6 Fedora End Of Life 2013-09-16 16:57:55 UTC
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

Comment 7 Fedora End Of Life 2015-05-29 09:01:58 UTC
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.

Comment 8 Fedora End Of Life 2015-06-30 01:22:28 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.