summaryrefslogtreecommitdiff
path: root/lib/gs.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gs.py')
-rw-r--r--lib/gs.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gs.py b/lib/gs.py
index 51c1752e1..7634b3865 100644
--- a/lib/gs.py
+++ b/lib/gs.py
@@ -253,7 +253,7 @@ class GSContext(object):
# (1*sleep) the first time, then (2*sleep), continuing via attempt * sleep.
DEFAULT_SLEEP_TIME = 60
- GSUTIL_VERSION = '4.13'
+ GSUTIL_VERSION = '4.15'
GSUTIL_TAR = 'gsutil_%s.tar.gz' % GSUTIL_VERSION
GSUTIL_URL = (PUBLIC_BASE_HTTPS_URL +
'chromeos-mirror/gentoo/distfiles/%s' % GSUTIL_TAR)
@@ -956,15 +956,15 @@ class GSContext(object):
Assorted GSContextException exceptions.
"""
try:
- res = self.DoCommand(['stat', path], redirect_stdout=True, **kwargs)
+ res = self.DoCommand(['stat', '--', path], redirect_stdout=True, **kwargs)
except GSCommandError as e:
# Because the 'gsutil stat' command logs errors itself (instead of
# raising errors internally like other commands), we have to look
- # for errors ourselves. See the bug report here:
+ # for errors ourselves. See the related bug report here:
# https://github.com/GoogleCloudPlatform/gsutil/issues/288
# Example line:
- # INFO 0713 05:58:12.451810 stat.py] No URLs matched gs://bucket/file
- if re.match(r'INFO [ 0-9:.]* stat.py\] No URLs matched', e.result.error):
+ # No URLs matched gs://bucket/file
+ if e.result.error.startswith('No URLs matched'):
raise GSNoSuchKey(path)
# No idea what this is, so just choke.