Description of problem:
Version-Release number of selected component (if applicable):
package-cleanup command with oldkernels doesn't seem to work and crashes out.
Steps to Reproduce:
1. Become root and RH5 machine.
2. Run /usr/bin/package-cleanup --oldkernels --count=2
# /usr/bin/package-cleanup --oldkernels --count=2
Setting up yum
I will remove the following 6 kernel related packages:
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)
Traceback (most recent call last):
File "/usr/bin/package-cleanup", line 402, in ?
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
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 174, in populateTs
AttributeError: YumInstalledPackage instance has no attribute 'idx'
Expect it to remove old kernel versions
This seems to have been resolved somewhere on the road to 5.2. You can close as
far as I'm concerned.
I notice this is still open, it was fixed in RH5.2
Please close, it won't allow me to