yum-3.0.6-1.fc6 barfs when resolving deps if some of the packages satisfying
dependencies do not contain SHA1HEADER.
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
File "/usr/share/yum-cli/yummain.py", line 94, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 381, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
File "/usr/share/yum-cli/yumcommands.py", line 134, in doCommand
File "/usr/share/yum-cli/cli.py", line 561, in installPkgs
my_inst_pkgs = self.returnInstalledPackagesByDep(arg)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1595, in
pkglist = self.rpmdb.whatProvides(depname, depflags, depver)
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
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
Examples of such rpms:
yum 3.1.x untested, but appears to already have a fix - attached is a backport
of it which does fix it for me with 3.0.6.
Created attachment 154612 [details]
Tolerate packages without SHA1HEADER
Seems okay to me; Seth?
It should look okay - you checked in that same patch to 3.1.X before :)
applying it and closing this upstream