Bug 189612
Summary: | Run-time failure in packageSack.py | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Schwendt <bugs.michael> | ||||||
Component: | yum | Assignee: | Jeremy Katz <katzj> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6 | CC: | katzj, ville.skytta | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 3.0.6 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2007-04-25 17:29:48 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Michael Schwendt
2006-04-21 16:28:33 UTC
Created attachment 128092 [details]
patch against yum-2.6.0-1 packageSack.py
At a second thought, probably returnNewestByName() is correct, so it can return a list of multiple package with the same EVR but different archs. In that case, the API documentation is incomplete, and pkgs = pkgSack.returnNewestByName() mypkgSack = ListPackageSack(pkgs) still gives a traceback. Created attachment 128093 [details]
patch returnNewestByName to make it return a list
This has all been cleaned up and made consistent in yum 2.9.x Still reproducible with yum-3.0-3. Just call yumBase.pkgSack.returnNewestByName() with default argument, and it creates a "list of lists of package objects" rather than a "list of package objects": 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 651, in addList self.addPackage(pkgobj) File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 475, in addPackage repoid = obj.returnSimple('repoid') AttributeError: 'list' object has no attribute 'returnSimple' grrr. This is the combination happening. okay I know what's going on here. Thanks Michael. *** Bug 220841 has been marked as a duplicate of this bug. *** This looks fixed in 3.0.6/3.1.6 to me |