Bug 878989 - Mock 1.0.36 seems to require python 2.6 syntax, el5 uses python 2.4
Mock 1.0.36 seems to require python 2.6 syntax, el5 uses python 2.4
Product: Fedora EPEL
Classification: Fedora
Component: mock (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Clark Williams
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-11-21 12:56 EST by Paul Knox-Kennedy
Modified: 2013-01-23 17:03 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-01-23 17:03:06 EST
Type: Bug
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 Paul Knox-Kennedy 2012-11-21 12:56:29 EST
Description of problem: Mock fails with a syntax error on a finally clause

Version-Release number of selected component (if applicable):1.0.36

How reproducible: Consistent

Steps to Reproduce:
Upgrade to mock 1.0.36 package.
Run a mock build
Actual results:

     [exec] Traceback (most recent call last):
     [exec]   File "/usr/sbin/mock", line 66, in ?
     [exec]     import mockbuild.backend
     [exec]   File "/usr/lib/python2.4/site-packages/mockbuild/backend.py", line 237
     [exec]     finally:
     [exec]           ^
     [exec] SyntaxError: invalid syntax

Expected results: Successfull build

Additional info: finally is not valid python24 syntax
Comment 1 Clark Williams 2012-11-21 17:48:26 EST
I foolishly let python > 2.4 conventions slip into the mock-1.0 branch so I'll need to clean that up. May take me a couple of days though.
Comment 2 Fedora Update System 2012-11-28 10:49:20 EST
mock-1.0.37-1.el5 has been submitted as an update for Fedora EPEL 5.
Comment 3 Fedora Update System 2012-11-28 12:37:20 EST
Package mock-1.0.37-1.el5:
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing mock-1.0.37-1.el5'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 4 Fedora Update System 2013-01-23 17:03:09 EST
mock-1.0.37-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

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