Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 235691 - yum-utils crashes with --oldkernels
Summary: yum-utils crashes with --oldkernels
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-04-09 16:57 UTC by Need Real Name
Modified: 2014-01-21 22:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-07 04:29:33 UTC


Attachments (Terms of Use)

Description Need Real Name 2007-04-09 16:57:16 UTC
# /usr/bin/package-cleanup --oldkernels
Setting up yum
I will remove the following 8 kernel related packages:
kernel-2.6.19-1.2911.6.5.fc6
kernel-2.6.19-1.2911.6.4.fc6
kernel-2.6.19-1.2911.fc6
kernel-2.6.19-1.2895.fc6
kernel-devel-2.6.19-1.2911.6.5.fc6
kernel-devel-2.6.19-1.2911.6.4.fc6
kernel-devel-2.6.19-1.2911.fc6
kernel-devel-2.6.19-1.2895.fc6
Is this ok [y/N]: y
/usr/bin/package-cleanup:312: DeprecationWarning: returnHeaderByTuple() will go
away in a future version of Yum.

  hdr = my.rpmdb.returnHeaderByTuple(kernel)[0]
Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 402, in ?
    main()
  File "/usr/bin/package-cleanup", line 371, in main
    removeKernels(my, opts.kernelcount, opts.confirmed, opts.keepdevel)
  File "/usr/bin/package-cleanup", line 317, in removeKernels
    my.populateTs()
  File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 171, in populateTs
    self.ts.addErase(txmbr.po.idx)
AttributeError: 'YumInstalledPackage' object has no attribute 'idx'

Comment 1 Stephen Warren 2007-08-08 02:43:33 UTC
This is a bit of a bummer, because this URL says to run this command:

http://fedoraproject.org/wiki/YumUpgradeFaq

Now, since the command failed, I have no idea if it will affect the proper
operation of the rest of the page...


Comment 2 Seth Vidal 2007-12-07 04:29:33 UTC
This is fixed in upstream yum-utils. It should be out in a release shortly.

closing  as upstream.

thank you!



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