Bug 220841 - packageSack.returnNewestByName() broken in yum 3.0.1
Summary: packageSack.returnNewestByName() broken in yum 3.0.1
Keywords:
Status: CLOSED DUPLICATE of bug 189612
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-27 20:27 UTC by Ville Skyttä
Modified: 2014-01-21 22:56 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-27 22:51:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ville Skyttä 2006-12-27 20:27:29 UTC
packageSack.returnNewestByName() appears to be broken in yum-3.0.1-2.fc6.

Reproducer is in upgradecheck.py CVS rev 1.28,
http://cvs.fedora.redhat.com/viewcvs/upgradecheck/upgradecheck.py?root=fedora&rev=1.28&view=auto
(line numbers could be a bit off):

Traceback (most recent call last):
  File "./upgradecheck.py", line 257, in ?
    main()
  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
returnNewestByName
    bestofeach.addList(self._computeAggregateListResult("returnNewestByName", name))
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 650, in addList
    self.addPackage(pkgobj)
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 474, in
addPackage
    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 21:24:53 UTC
Same as bug 189612.

Comment 2 Ville Skyttä 2006-12-27 22:51:20 UTC
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.