Bug 215811 - yum-utils - a tracebac from package-cleanup
Summary: yum-utils - a tracebac from package-cleanup
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-11-15 21:20 UTC by Michal Jaegermann
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-11 19:51:35 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2006-11-15 21:20:05 UTC
Description of problem:

# package-cleanup --problems
Setting up yum
Reading local RPM database
Processing all local requires
Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 349, in ?
    main()
  File "/usr/bin/package-cleanup", line 346, in main
    provsomething = buildProviderList(my,pkgs,opts.problems)
  File "/usr/bin/package-cleanup", line 85, in buildProviderList
    resolve_sack = my.rpmdb.whatProvides(req,rflags,ver)
  File "/usr/lib/python2.4/site-packages/yum/rpmsack.py", line 364, in whatProvides
    morepkgs = self.searchFiles(name)
  File "/usr/lib/python2.4/site-packages/yum/rpmsack.py", line 103, in searchFiles
    if not result.has_key(pkg.pkgid):
TypeError: list objects are unhashable

Operations like --leaves, --orphans, or --dupes are fine.

Version-Release number of selected component (if applicable):
yum-utils-1.0.1-1.fc6

How reproducible:
always

Comment 1 Seth Vidal 2006-11-16 05:26:39 UTC
When yum 3.0.1 comes out in updates. Please install it then retest this command.

thanks
 

Comment 2 Michal Jaegermann 2006-11-16 23:56:57 UTC
After an update to yum-3.0.1-2.fc6, but with the same yum-utils package,
line numbers are slightly different but still a traceback.

# package-cleanup --problems
Setting up yum
Reading local RPM database
Processing all local requires
Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 349, in ?
    main()
  File "/usr/bin/package-cleanup", line 346, in main
    provsomething = buildProviderList(my,pkgs,opts.problems)
  File "/usr/bin/package-cleanup", line 85, in buildProviderList
    resolve_sack = my.rpmdb.whatProvides(req,rflags,ver)
  File "/usr/lib/python2.4/site-packages/yum/rpmsack.py", line 397, in whatProvides
    morepkgs = self.searchFiles(name)
  File "/usr/lib/python2.4/site-packages/yum/rpmsack.py", line 104, in searchFiles
    if not result.has_key(pkg.pkgid):
TypeError: list objects are unhashable


Comment 3 Seth Vidal 2006-12-11 19:51:35 UTC
I'm pretty sure this is about the ListPackageSack issue in 3.0.1. It's fixed in
cvs now and should be set for 3.0.2.



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