[python26-boto/el5: 1/2] Fix roboto parameter type conversion

gholms gholms at fedoraproject.org
Wed Feb 12 22:18:33 UTC 2014


commit 4b2dc4e921fa0a6b921f9167356d196c2f32d14c
Author: Garrett Holmstrom <gholms at devzero.com>
Date:   Wed Feb 12 14:13:36 2014 -0800

    Fix roboto parameter type conversion
    
    https://github.com/boto/boto/pull/2094
    https://bugzilla.redhat.com/show_bug.cgi?id=1064550

 boto-2.25.0-roboto-param.patch |   21 +++++++++++++++++++++
 python-boto.spec               |   11 ++++++++++-
 2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/boto-2.25.0-roboto-param.patch b/boto-2.25.0-roboto-param.patch
new file mode 100644
index 0000000..d111d59
--- /dev/null
+++ b/boto-2.25.0-roboto-param.patch
@@ -0,0 +1,21 @@
+Index: boto/boto/roboto/param.py
+===================================================================
+--- boto.orig/boto/roboto/param.py
++++ boto/boto/roboto/param.py
+@@ -67,7 +67,7 @@ class Converter(object):
+         except:
+             raise ValidationException(param, '')
+ 
+-class Param(object):
++class Param(Converter):
+ 
+     def __init__(self, name=None, ptype='string', optional=True,
+                  short_name=None, long_name=None, doc='',
+@@ -142,6 +142,6 @@ class Param(object):
+         :param value: The value to convert.  This should always
+                       be a string.
+         """
+-        return super(Param, self).convert(value)
++        return super(Param, self).convert(self, value)
+ 
+ 
diff --git a/python-boto.spec b/python-boto.spec
index 9633fd6..0dd353b 100644
--- a/python-boto.spec
+++ b/python-boto.spec
@@ -2,7 +2,7 @@
 Summary:        A simple lightweight interface to Amazon Web Services
 Name:           python-boto
 Version:        2.25.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        MIT
 Group:          Development/Languages
 URL:            https://github.com/boto/boto
@@ -11,6 +11,11 @@ BuildRequires:  python-devel >= 2.5, python-setuptools-devel
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+# Fix roboto parameter type conversion
+# https://github.com/boto/boto/pull/2094
+# https://bugzilla.redhat.com/show_bug.cgi?id=1064550
+Patch1:         boto-2.25.0-roboto-param.patch
+
 
 %description
 Boto is a Python package that provides interfaces to Amazon Web Services.
@@ -23,6 +28,7 @@ cloud systems like Eucalyptus, OpenStack and Open Nebula.
 
 %prep
 %setup -q -n boto-%{version}
+%patch1 -p1
 
 rm -r boto.egg-info
 
@@ -58,6 +64,9 @@ rm -r boto.egg-info
 %{python_sitelib}/boto*.egg-info
 
 %changelog
+* Wed Feb 12 2014 Garrett Holmstorm <gholms at fedoraproject.org> - 2.25.0-2
+- Fixed roboto parameter type conversion (boto #2094, RH #1064550)
+
 * Mon Feb 10 2014 Garrett Holmstrom <gholms at fedoraproject.org> - 2.25.0-1
 - Updated to 2.25.0
 - This update makes s3.get_bucket use HEAD instead of GET


More information about the scm-commits mailing list