Pin gsutil in cbuildbot.
Rather than just using whatever version of gsutil is present on the
system, start using a pinned gsutil configured in cbuildbot.
This will allow us to update gsutil as we please without being affected
by the system gsutil version. This in turn means that we can depend on a
consistent version of gsutil being used everywhere, and we do not need
to write backwards and forwards compatibility code.
BUG=chromium:305407
CQ-DEPEND=CL:174893, CL:171989
TEST=Sample runs of cbuildbot, cros_best_revision, etc.
Change-Id: I7137fd4edb767a5e21a5acafc30d1f0abdb6c296
Reviewed-on: https://chromium-review.googlesource.com/175305
Tested-by: Yu-Ju Hong <yjhong@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Commit-Queue: Yu-Ju Hong <yjhong@chromium.org>
diff --git a/scripts/deploy_chrome.py b/scripts/deploy_chrome.py
index 4793c22..d24600d 100644
--- a/scripts/deploy_chrome.py
+++ b/scripts/deploy_chrome.py
@@ -445,7 +445,7 @@
Returns: Path to the fetched chrome tarball.
"""
- gs_ctx = gs.GSContext.Cached(cache_dir, init_boto=True)
+ gs_ctx = gs.GSContext(cache_dir=cache_dir, init_boto=True)
files = gs_ctx.LS(gs_path).output.splitlines()
files = [found for found in files if
_UrlBaseName(found).startswith('%s-' % constants.CHROME_PN)]