Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 220841 - packageSack.returnNewestByName() broken in yum 3.0.1
packageSack.returnNewestByName() broken in yum 3.0.1
Status: CLOSED DUPLICATE of bug 189612
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  Show dependency treegraph
Reported: 2006-12-27 15:27 EST by Ville Skyttä
Modified: 2014-01-21 17:56 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-12-27 17:51:20 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ville Skyttä 2006-12-27 15:27:29 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
    bestofeach.addList(self._computeAggregateListResult("returnNewestByName", name))
  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.
Comment 1 Michael Schwendt 2006-12-27 16:24:53 EST
Same as bug 189612.
Comment 2 Ville Skyttä 2006-12-27 17:51:20 EST
Ah, indeed.

*** This bug has been marked as a duplicate of 189612 ***

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