diff -u python-boto-2.3.0/debian/changelog python-boto-2.3.0/debian/changelog --- python-boto-2.3.0/debian/changelog +++ python-boto-2.3.0/debian/changelog @@ -1,3 +1,9 @@ +python-boto (2.3.0-1ubuntu1) raring; urgency=low + + * Fix failures when there are spaces in a resource name. (LP: #962046) + + -- Chris J Arges Fri, 08 Feb 2013 09:50:51 -0600 + python-boto (2.3.0-1) unstable; urgency=low * New upstream release (Closes: #664478) only in patch2: unchanged: --- python-boto-2.3.0.orig/debian/patches/series +++ python-boto-2.3.0/debian/patches/series @@ -0,0 +1 @@ +fix-spaces-in-resource-name.patch only in patch2: unchanged: --- python-boto-2.3.0.orig/debian/patches/fix-spaces-in-resource-name.patch +++ python-boto-2.3.0/debian/patches/fix-spaces-in-resource-name.patch @@ -0,0 +1,21 @@ +Description: Fix failures when there are spaces in a resource name. + . + python-boto (2.3.0-1ubuntu1) quantal; urgency=low + . + * Fix failures when there are spaces in a resource name. (LP: #962046) +Author: Chris J Arges +Bug-Ubuntu: https://bugs.launchpad.net/bugs/962046 +Origin: upstream, https://github.com/boto/boto/commit/fa10336d5db5f6c0f4e953fce21bd3c53234c8f5 +Bug: https://github.com/boto/boto/issues/659 + +--- python-boto-2.2.2.orig/boto/utils.py ++++ python-boto-2.2.2/boto/utils.py +@@ -206,7 +206,7 @@ def _get_instance_metadata(url): + resource = field[0:p] + '/openssh-key' + else: + key = resource = field +- val = retry_url(url + resource) ++ val = retry_url(url + urllib.quote(resource, safe="/:")) + p = val.find('\n') + if p > 0: + val = val.split('\n')