Description of problem: the command "package-cleanup --leaves" fails with AssertionError Version-Release number of selected component (if applicable): yum-utils-1.1.14-4.fc8 How reproducible: always reproducible on my system Steps to Reproduce: type: package-cleanup --leaves --exclude-devel (also fails without --exclude-devel) Actual results: Setting up yum Traceback (most recent call last): File "/usr/bin/package-cleanup", line 449, in <module> main() File "/usr/bin/package-cleanup", line 422, in main opts.exclude_devel, opts.exclude_bin) File "/usr/bin/package-cleanup", line 235, in listLeaves exclude_bin): File "/usr/bin/package-cleanup", line 214, in _shouldShowLeaf assert len(pos) == 1 AssertionError Additional info: "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?
using yum-3.2.8-2.fc8
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 contains: pkg[0]: gpg-pubkey pkg[1]: None pkg[2]: 0 pkg[3]: a109b1ec pkg[4]: 3f6e28d5 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 there, too.
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.