Bug 219384

Summary: TB3ff0bf74 rpmsack.py:121:searchPrco:TypeError: list objects are unhashable
Product: [Fedora] Fedora Reporter: David Florence <florencent.leech>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 6CC: spam2
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-25 18:57:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
TB3ff0bf74 rpmsack.py:121:searchPrco:TypeError none

Description David Florence 2006-12-12 21:06:13 UTC
Description of problem:
yum crashes attempting to remove and update jre

Version-Release number of selected component (if applicable):
jre 1.5.0_09
jre 6 linux

How reproducible:
consistant

Steps to Reproduce:
1. install jre-6-linux-amd64.rpm
2. remove jre-5-linux-amd94.rpm
3.
  
Actual results:
yum crash

Expected results:
software installer to either update package or remove old package.

Additional info:
see attached file

Comment 1 David Florence 2006-12-12 21:06:13 UTC
Created attachment 143447 [details]
TB3ff0bf74 rpmsack.py:121:searchPrco:TypeError

Comment 2 Reindl Harald 2007-04-03 18:47:11 UTC
Same happens if you have installed the original openoffice-package 2.1/2.2 and
try to use yum-utils to look for troubles:

[root@nb ZendStudio]# package-cleanup --problems
Setting up yum
Excluding Packages in global exclude list
Finished
Reading local RPM database
Processing all local requires
Traceback (most recent call last):
  File "/usr/bin/package-cleanup", line 402, in ?
    main()
  File "/usr/bin/package-cleanup", line 399, 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 390, in whatProvides
    pkgs = self.searchProvides(name)
  File "/usr/lib/python2.4/site-packages/yum/rpmsack.py", line 141, in
searchProvides
    return self.searchPrco(name, 'provides')
  File "/usr/lib/python2.4/site-packages/yum/rpmsack.py", line 123, in searchPrco
    if not result.has_key(po.pkgid):
TypeError: list objects are unhashable

Comment 3 Jeremy Katz 2007-04-25 18:57:31 UTC
This is a bug with the packages, but we should be handling it better for F7