Red Hat Bugzilla – Bug 220841
packageSack.returnNewestByName() broken in yum 3.0.1
Last modified: 2014-01-21 17:56:30 EST
packageSack.returnNewestByName() appears to be broken in yum-3.0.1-2.fc6.
Reproducer is in upgradecheck.py CVS rev 1.28,
(line numbers could be a bit off):
Traceback (most recent call last):
File "./upgradecheck.py", line 257, in ?
File "./upgradecheck.py", line 162, in main
for l in solvers[dist].pkgSack.returnNewestByName():
File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 298, in
File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 650, in addList
File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 474, in
repoid = obj.returnSimple('repoid')
AttributeError: 'list' object has no attribute 'returnSimple'
One workaround which I'll apply to upgradecheck.py is to use
returnNewestByNameArch() instead of returnNewestByName() (and eliminate the
related inner loop), but it'd be nice to have returnNewestByName() fixed. It
works as expected in yum-2.6.1-0.fc5.
Same as bug 189612.
*** This bug has been marked as a duplicate of 189612 ***