[Yum-devel] [PATCH] Exceptions in depsolve.py (3_2_X branch, CentOS 5.4 installer)
Charlie Brady
charlieb-yum-devel at budge.apana.org.au
Thu Nov 12 16:20:46 UTC 2009
On Thu, 12 Nov 2009, James Antill wrote:
> On Wed, 2009-11-11 at 18:29 -0500, Charlie Brady wrote:
>> --- depsolve.py.orig 2009-11-10 18:26:41.435910000 -0500
>> +++ depsolve.py 2009-11-11 17:49:51.514498000 -0500
>> @@ -1100,8 +1100,8 @@
>> pkgresults[po] -= 1024
>>
>> obsoleted = False
>> - poprovtup = (po.name, 'EQ', (po.epoch, po.ver, po.release))
>> - if nextpo.inPrcoRange('obsoletes', poprovtup):
>> + poprovtup = (po.name, 'EQ', (po.epoch, po.version, po.release))
>> + if nextpo.po.inPrcoRange('obsoletes', poprovtup):
>
> The actual bug here would be a higher caller putting a txmbr into the
> list of things to compare_providers.
Aren't there two bugs? .ver member on po, and .inPrcoRange on nextpo?
> What is calling compare_providers in the traceback?
Traceback (most recent call first):
File "/usr/lib/python2.4/site-packages/yum/depsolve.py", line 1103, in
_compare_providers
poprovtup = (po.name, 'EQ', (po.epoch, po.ver, po.release))
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 2360, in
_bestPackageFromList
bestlist = self._compare_providers(pkglist, None)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 2385, in
bestPackagesFromList
single = self._bestPackageFromList(singleLib)
File "/tmp/updates/yuminstall.py", line 467, in tsCheck
member = self.bestPackagesFromList(pkgs)[0]
File "/tmp/updates/yuminstall.py", line 420, in resolveDeps
unresolved = self.tsCheck(unresolved)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 737, in
buildTransaction
(rescode, restring) = self.resolveDeps(rescode == 1)
File "/tmp/updates/yuminstall.py", line 1251, in doPostSelection
(code, msgs) = self.ayum.buildTransaction()
File "/tmp/treedir.22057/instimage/usr/lib/anaconda/backend.py", line
177, in doPostSelection
return anaconda.backend.doPostSelection(anaconda)
File "/tmp/updates/dispatch.py", line 201, in moveStep
rc = stepFunc(self.anaconda)
File "/tmp/updates/dispatch.py", line 124, in gotoNext
self.moveStep()
File "/tmp/updates/text.py", line 728, in run
anaconda.dispatch.gotoNext()
File "/tmp/updates/anaconda", line 1006, in ?
anaconda.intf.run(anaconda)
AttributeError: TransactionMember instance has no attribute 'ver'
More information about the Yum-devel
mailing list