summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-11-22 20:19:45 +0000
committerMike Frysinger <vapier@gentoo.org>2011-11-22 20:19:45 +0000
commit6bd277c665a3c115a6d3aea9fcb0c490507a3880 (patch)
tree0db1b7a4cfef0437bbf60d970645b3ee280f43c4 /net-misc/gsutil/files
parentfix up documentation (diff)
downloadgentoo-2-6bd277c665a3c115a6d3aea9fcb0c490507a3880.tar.gz
gentoo-2-6bd277c665a3c115a6d3aea9fcb0c490507a3880.tar.bz2
gentoo-2-6bd277c665a3c115a6d3aea9fcb0c490507a3880.zip
Initial import by me.
(Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/gsutil/files')
-rw-r--r--net-misc/gsutil/files/gsutil-system-boto.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-misc/gsutil/files/gsutil-system-boto.patch b/net-misc/gsutil/files/gsutil-system-boto.patch
new file mode 100644
index 000000000000..88cb49c0f0ab
--- /dev/null
+++ b/net-misc/gsutil/files/gsutil-system-boto.patch
@@ -0,0 +1,23 @@
+http://code.google.com/p/gsutil/issues/detail?id=71
+
+--- a/gsutil
++++ b/gsutil
+@@ -41,13 +41,15 @@
+ _OutputAndExit('Unable to determine where gsutil is installed. Sorry, '
+ 'cannot run correctly without this.\n')
+ boto_lib_dir = os.path.join(gsutil_bin_dir, 'boto')
+-if not os.path.isdir(boto_lib_dir):
++if os.path.isdir(boto_lib_dir):
++ sys.path.insert(0, boto_lib_dir)
++try:
++ import boto
++except:
+ _OutputAndExit('There is no boto library under the gsutil install directory '
+ '(%s).\nThe gsutil command cannot work properly when installed '
+ 'this way.\nPlease re-install gsutil per the installation '
+ 'instructions.' % gsutil_bin_dir)
+-sys.path.insert(0, boto_lib_dir)
+-import boto
+ from boto.exception import BotoClientError
+ from boto.exception import InvalidAclError
+ from boto.exception import InvalidUriError