Bug 878989 - Mock 1.0.36 seems to require python 2.6 syntax, el5 uses python 2.4
Summary: Mock 1.0.36 seems to require python 2.6 syntax, el5 uses python 2.4
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: mock
Version: el5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Clark Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-21 17:56 UTC by Paul Knox-Kennedy
Modified: 2013-01-23 22:03 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-23 22:03:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paul Knox-Kennedy 2012-11-21 17:56:29 UTC
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 22:48:26 UTC
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 15:49:20 UTC
mock-1.0.37-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/mock-1.0.37-1.el5

Comment 3 Fedora Update System 2012-11-28 17:37:20 UTC
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:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13593/mock-1.0.37-1.el5
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-01-23 22:03:09 UTC
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.