Bug 210630

Summary: AttributeError of YumAvailablePackageSqlite by mock-0.6.5-1.fc6
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: yumAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: borzoi, das_deniz, karl, lmacken, venom087
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-10-16 00:13:04 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:

Description Mamoru TASAKA 2006-10-13 13:39:39 UTC
Description of problem:
When I try to rebuild some srpm by mockbuild, I get:
AttributeError: YumAvailablePackageSqlite instance has no attribute 'returnEVR'.

The error is called when using mock, however, I suspect this is
due to yum 

Version-Release number of selected component (if applicable):
yum-3.0-5
mock-0.6.5-1.fc6

How reproducible:
100%

Steps to Reproduce:
1. try to rebuild some srpm by mockbuild
2.
3.
  
Actual results:
DEBUG: Executing /usr/sbin/mock-helper yum --installroot
/var/lib/mock/fedora-development-i386-core/root install buildsys-build
Traceback (most recent call last):
  File "/usr/libexec/mock-yum", line 12, in ?
    yummain.main(sys.argv[1:])
  File "/usr/share/yum-cli/yummain.py", line 102, in main
    result, resultmsgs = do()
  File "/usr/share/yum-cli/cli.py", line 359, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd,
self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 134, in doCommand
    return base.installPkgs(extcmds)
  File "/usr/share/yum-cli/cli.py", line 594, in installPkgs
    pkglist.extend(self.bestPackagesFromList(toBeInstalled[name]))
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1649, in
bestPackagesFromList
    no = self._bestPackageFromList(noarch)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1608, in
_bestPackageFromList
    bestlist = mysack.returnNewestByNameArch() # get rid of all lesser vers
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 563, in
returnNewestByNameArch
    if pkg.EVR > pkg2.EVR:
  File "/usr/lib/python2.4/site-packages/yum/packages.py", line 330, in <lambda>
    EVR = property(fget=lambda self: self.returnEVR())
AttributeError: YumAvailablePackageSqlite instance has no attribute 'returnEVR'
Error performing yum command: /usr/sbin/mock-helper yum --installroot
/var/lib/mock/fedora-development-i386-core/root install buildsys-build
ending

Expected results:


Additional info:
yum-3.0-4 is okay with mock-0.6.5-1.fc6

Comment 1 Jeremy Katz 2006-10-16 00:13:04 UTC
Fixed in yum-3.0-6

Comment 2 Jeremy Katz 2006-10-16 00:13:15 UTC
*** Bug 210654 has been marked as a duplicate of this bug. ***

Comment 3 Jeremy Katz 2006-10-16 00:13:36 UTC
*** Bug 210662 has been marked as a duplicate of this bug. ***

Comment 4 Jeremy Katz 2006-10-16 00:13:54 UTC
*** Bug 210723 has been marked as a duplicate of this bug. ***

Comment 5 Jeremy Katz 2006-10-16 00:14:06 UTC
*** Bug 210746 has been marked as a duplicate of this bug. ***

Comment 6 Jeremy Katz 2006-10-16 00:14:10 UTC
*** Bug 210752 has been marked as a duplicate of this bug. ***