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 451516 - package-cleanup AssertionError on gpg-pubkey
Summary: package-cleanup AssertionError on gpg-pubkey
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 8
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2008-06-15 08:01 UTC by Ville Skyttä
Modified: 2014-01-21 06:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-12-17 15:33:31 UTC

Attachments (Terms of Use)
Don't barf on gpg-pubkeys (deleted)
2008-06-15 08:01 UTC, Ville Skyttä
no flags Details | Diff

Description Ville Skyttä 2008-06-15 08:01:05 UTC
$ rpm -q yum-utils

$ rpm -qa gpg-pubkey

$ package-cleanup --leaves
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
    opts.exclude_devel, opts.exclude_bin)
  File "/usr/bin/package-cleanup", line 235, in listLeaves
  File "/usr/bin/package-cleanup", line 214, in _shouldShowLeaf
    assert len(pos) == 1

The attached quick and dirty patch fixes it for me.

Comment 1 Ville Skyttä 2008-06-15 08:01:05 UTC
Created attachment 309388 [details]
Don't barf on gpg-pubkeys

Comment 2 Seth Vidal 2008-06-16 21:18:35 UTC
looks like your fix is the right one. I may try to make it a bit more general in
case any other crack gets added into the rpmdb.

but over all thanks

Comment 3 Bug Zapper 2008-11-26 10:52:09 UTC
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here:

Comment 4 Jan Hutař 2008-12-17 11:32:56 UTC
I see this patch is already applied in: yum-utils-1.1.18-2.fc10.noarch so this bug can be CLOSED.

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