Bug 749108

Summary: [abrt] yum-3.4.3-5.fc16: misc.py:1091:decompress:AttributeError: 'NoneType' object has no attribute 'endswith'
Product: [Fedora] Fedora Reporter: Nick Cross <redhat>
Component: yum-langpacksAssignee: Jens Petersen <petersen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: ffesti, i18n-bugs, james.antill, maciek.borzecki, maxamillion, ncorrare, notting, petersen, pmatilai, tla, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c19cd6c1ffa35fab0466571e01a8942de8e5c7c9
Fixed In Version: yum-langpacks-0.2.4-1.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-05 01:22:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
a patch against yum-langpacks-0.2.3 none

Description Nick Cross 2011-10-26 08:29:07 UTC
libreport version: 2.0.6
abrt_version:   2.0.4.981
cmdline:        /usr/bin/python /usr/bin/yum search libbooost
comment:        Searching for package
executable:     /usr/bin/yum
kernel:         3.1.0-0.rc10.git0.1.fc16.x86_64
reason:         misc.py:1091:decompress:AttributeError: 'NoneType' object has no attribute 'endswith'
time:           Wed Oct 26 09:20:34 2011
uid:            1000
username:       rnc

backtrace:
:misc.py:1091:decompress:AttributeError: 'NoneType' object has no attribute 'endswith'
:
: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 309, in user_main
:    errcode = main(args)
:  File "/usr/share/yum-cli/yummain.py", line 140, in main
:    result, resultmsgs = base.doCommands()
:  File "/usr/share/yum-cli/cli.py", line 462, in doCommands
:    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
:  File "/usr/share/yum-cli/yumcommands.py", line 1258, in doCommand
:    return base.search(extcmds)
:  File "/usr/share/yum-cli/cli.py", line 1184, in search
:    for (po, keys, matched_value) in matching:
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 2530, in searchGenerator
:    for sack in self.pkgSack.sacks.values():
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 892, in <lambda>
:    pkgSack = property(fget=lambda self: self._getSacks(),
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 673, in _getSacks
:    self.repos.populateSack(which=repos)
:  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 265, in populateSack
:    self.doSetup()
:  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 92, in doSetup
:    self.ayum.plugins.run('postreposetup')
:  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 184, in run
:    func(conduitcls(self, self.base, conf, **kwargs))
:  File "/usr/lib/yum-plugins/langpacks.py", line 76, in postreposetup_hook
:    infile = yum.misc.decompress(infile)
:  File "/usr/lib/python2.7/site-packages/yum/misc.py", line 1091, in decompress
:    if filename.endswith('.gz'):
:AttributeError: 'NoneType' object has no attribute 'endswith'
:
:Local variables in innermost frame:
:check_timestamps: False
:dest: None
:filename: None
:fn_only: False
:out: None

Comment 1 Zdeněk Pavlas 2011-10-26 12:55:39 UTC
Submitted a patch.  F16 ships 0.2.3 but master at git.fedorahosted.org/git/yum-langpacks.git is at 0.2.2 (?)

Comment 2 Zdeněk Pavlas 2011-10-26 13:26:32 UTC
Created attachment 530282 [details]
a patch against yum-langpacks-0.2.3

Comment 3 Fedora Update System 2011-10-26 15:16:09 UTC
yum-langpacks-0.2.4-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/FEDORA-2011-14870

Comment 4 Fedora Update System 2011-10-26 15:18:26 UTC
yum-langpacks-0.2.4-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/yum-langpacks-0.2.4-1.fc15

Comment 5 Fedora Update System 2011-10-26 19:04:39 UTC
Package yum-langpacks-0.2.4-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-langpacks-0.2.4-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14870
then log in and leave karma (feedback).

Comment 6 Nicolas Corrarello 2011-10-27 19:00:06 UTC
Package: yum-3.4.3-5.fc16
Architecture: x86_64
OS Release: Fedora release 16 (Verne)

Comment
-----
yum --enablerepo=updates-testing list updates

Comment 7 Maciek Borzecki 2011-10-30 21:50:18 UTC
Package: yum-3.4.3-5.fc16
Architecture: i686
OS Release: Fedora release 16 (Verne)

Comment
-----
Yum was running a 'provides' command when my wireless link failed. Then, for each mirror I got trying another mirror message. Once the list of all mirrors was exhaused, an exception popped up.

Comment 8 Fedora Update System 2011-11-05 01:22:23 UTC
yum-langpacks-0.2.4-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-11-14 22:23:23 UTC
yum-langpacks-0.2.4-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.