Red Hat Bugzilla – Bug 456062
AssertionError with package-cleanup --leaves
Last modified: 2008-09-10 03:05:04 EDT
Description of problem:
the command "package-cleanup --leaves" fails with AssertionError
Version-Release number of selected component (if applicable):
always reproducible on my system
Steps to Reproduce:
type: package-cleanup --leaves --exclude-devel
(also fails without --exclude-devel)
Setting up yum
Traceback (most recent call last):
File "/usr/bin/package-cleanup", line 449, in <module>
File "/usr/bin/package-cleanup", line 422, in main
File "/usr/bin/package-cleanup", line 235, in listLeaves
File "/usr/bin/package-cleanup", line 214, in _shouldShowLeaf
assert len(pos) == 1
"package-cleanup --problems" works fine and says "No problems found".
I have also tried "yum clean all" before running package-cleanup.
what version of yum are you using here?
I just realized package-cleanup is python. After adding a suitable print
command, I found that "package-cleanup --leaves" fails when it encounters
gpg-pubkey. More precisely, at the point where it fails, the variable pkg
Just in case this might help.
Yes, this does help. In later versions of yum we've excluded those packages from
look ups like this. I can make sure that package-cleanup steps around this in
the meantime and if/when we release an update for yum for F8 it will be fixed
yum-utils-1.1.15-1.fc9 has been submitted as an update for Fedora 9
yum-utils-1.1.15-1.fc8 has been submitted as an update for Fedora 8
yum-utils-1.1.15-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
yum-utils-1.1.15-1.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.