Bug 502522 - rpm-warm-cache is crashing yum
Summary: rpm-warm-cache is crashing yum
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: rawhide
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-25 18:08 UTC by David Sandberg
Modified: 2014-01-21 23:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-26 04:25:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Sandberg 2009-05-25 18:08:28 UTC
Description of problem: after installing of yum-warm-cache comes the Error

"Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2461, in _check_init
    self.yumbase.repos.doSetup()
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 79, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/rpm-warm-cache.py", line 32, in postreposetup_hook
    cmd = commands[0]
TypeError: 'NoneType' object is unsubscriptable"

If I uninstall the package, the error is lost. If I install it again the Error appears new.


Version-Release number of selected component (if applicable):

yum-3.2.22-4.fc11.noarch  

other yum comonents and plugins are:

yum-plugin-tmprepo-1.1.21-2.fc11.noarch
anaconda-yum-plugins-1.0-4.fc11.noarch
yum-plugin-protect-packages-1.1.21-2.fc11.noarch
yum-presto-0.4.5-4.fc11.noarch
yum-3.2.22-4.fc11.noarch
yum-plugin-protectbase-1.1.21-2.fc11.noarch
yum-NetworkManager-dispatcher-1.1.21-2.fc11.noarch
yum-plugin-rpm-warm-cache-1.1.21-2.fc11.noarch
yum-plugin-kmdl-0.8-11.fc10.noarch
yum-plugin-refresh-updatesd-1.1.21-2.fc11.noarch
PackageKit-yum-plugin-0.4.6-8.fc11.i586
yum-plugin-versionlock-1.1.21-2.fc11.noarch
yum-plugin-fastestmirror-1.1.21-2.fc11.noarch
PackageKit-yum-0.4.6-8.fc11.i586
yum-plugin-remove-with-leaves-1.1.21-2.fc11.noarch
yum-plugin-upgrade-helper-1.1.21-2.fc11.noarch
yum-metadata-parser-1.1.2-12.fc11.i586
yum-utils-1.1.21-2.fc11.noarch
yum-updatesd-0.9-2.fc11.noarch
yum-plugin-allowdowngrade-1.1.21-2.fc11.noarch
yum-plugin-keys-1.1.21-2.fc11.noarch
yumex-2.0.5-6.fc11.noarch


How reproducible:
always

Steps to Reproduce:
1. install yum-plugin-rpm-warm-cache
2. de- and reinstall the package
3. yum update
  
Actual results:


Expected results:


Additional info: Others in the German forum have no Mistake with this install

Comment 1 James Antill 2009-05-26 04:25:16 UTC
Get the latest yum-plugin-rpm-warm-cache.

Comment 2 David Sandberg 2009-05-26 19:13:04 UTC
Where can I found the latest rpm, there is no in the repository. It is possible that this reffers to the Bug 474531 in FC10?

PackageKit version:

PackageKit-0.4.6.-8.fc11.i586

Goli

Comment 3 David Sandberg 2009-05-26 21:33:27 UTC
The Error comes from PackeKit Update plugin. if it ask for updateinformations, then appears the Message:

Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2461, in _check_init
    self.yumbase.repos.doSetup()
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 79, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/rpm-warm-cache.py", line 32, in postreposetup_hook
    cmd = commands[0]
TypeError: 'NoneType' object is unsubscriptable

Goli

Comment 4 David Sandberg 2009-05-30 01:03:01 UTC
(In reply to comment #1)
> Get the latest yum-plugin-rpm-warm-cache.  

in updates-testing

Comment 5 Sinan H 2009-06-12 12:52:09 UTC
Still present in Fedora 11.


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