[python-bugzilla/el5] Fix another 2.4 incompatibility (bz #854979)
Cole Robinson
crobinso at fedoraproject.org
Thu Oct 18 21:44:55 UTC 2012
commit 754454452c0075e4183c9cde42c98ec778ef7029
Author: Cole Robinson <crobinso at redhat.com>
Date: Thu Oct 18 17:44:53 2012 -0400
Fix another 2.4 incompatibility (bz #854979)
python-bugzilla-2.4-backcompat.patch | 20 +++++++++++++++++---
python-bugzilla.spec | 5 ++++-
2 files changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/python-bugzilla-2.4-backcompat.patch b/python-bugzilla-2.4-backcompat.patch
index 29f810d..57e6fdc 100644
--- a/python-bugzilla-2.4-backcompat.patch
+++ b/python-bugzilla-2.4-backcompat.patch
@@ -1,6 +1,7 @@
-diff -rup python-bugzilla-0.7.0/bugzilla/base.py foo/bugzilla/base.py
---- python-bugzilla-0.7.0/bugzilla/base.py 2012-06-06 18:42:04.000000000 -0400
-+++ foo/bugzilla/base.py 2012-06-14 19:36:03.782879201 -0400
+Index: python-bugzilla-0.7.0/bugzilla/base.py
+===================================================================
+--- python-bugzilla-0.7.0.orig/bugzilla/base.py
++++ python-bugzilla-0.7.0/bugzilla/base.py
@@ -19,8 +19,8 @@ import base64
import tempfile
import logging
@@ -21,3 +22,16 @@ diff -rup python-bugzilla-0.7.0/bugzilla/base.py foo/bugzilla/base.py
val = val.strip('"') # remove quotes
return ''.join(f[0].decode(f[1] or 'us-ascii') for f in decode_header(val))
+Index: python-bugzilla-0.7.0/bugzilla/util.py
+===================================================================
+--- python-bugzilla-0.7.0.orig/bugzilla/util.py
++++ python-bugzilla-0.7.0/bugzilla/util.py
+@@ -28,7 +28,7 @@ def open_without_clobber(name, *args):
+ while fd is None:
+ try:
+ fd = os.open(name, os.O_CREAT|os.O_EXCL, 0666)
+- except OSError as e:
++ except OSError, e:
+ if e.errno == os.errno.EEXIST:
+ name = "%s.%i" % (orig_name, count)
+ count += 1
diff --git a/python-bugzilla.spec b/python-bugzilla.spec
index 294c38e..9f82663 100644
--- a/python-bugzilla.spec
+++ b/python-bugzilla.spec
@@ -2,7 +2,7 @@
Name: python-bugzilla
Version: 0.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A python library for interacting with Bugzilla
Group: Development/Languages
@@ -51,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Oct 18 2012 Cole Robinson <crobinso at redhat.com> - 0.7.0-2
+- Fix another 2.4 incompatibility (bz #854979)
+
* Thu Jun 14 2012 Cole Robinson <crobinso at redhat.com> - 0.7.0-1
- Rebased to version 0.7.0
- Fix querying with latest Red Hat bugzilla
More information about the scm-commits
mailing list