Bug 451516 - package-cleanup AssertionError on gpg-pubkey
package-cleanup AssertionError on gpg-pubkey
Product: Fedora
Classification: Fedora
Component: yum-utils (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
: Patch
Depends On:
  Show dependency treegraph
Reported: 2008-06-15 04:01 EDT by Ville Skyttä
Modified: 2014-01-21 01:10 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-12-17 10:33:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Don't barf on gpg-pubkeys (413 bytes, patch)
2008-06-15 04:01 EDT, Ville Skyttä
no flags Details | Diff

  None (edit)
Description Ville Skyttä 2008-06-15 04:01:05 EDT
$ 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 04:01:05 EDT
Created attachment 309388 [details]
Don't barf on gpg-pubkeys
Comment 2 Seth Vidal 2008-06-16 17:18:35 EDT
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 05:52:09 EST
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 06:32:56 EST
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.