From 69b63c9f97d01ee38844ad078cb63799bde9c8ce Mon Sep 17 00:00:00 2001 From: Victor Costan Date: Wed, 25 Sep 2019 19:43:37 +0000 Subject: [PATCH] Fix sys.platform mapping in download_from_google_storage.py. Relevant documentation: https://docs.python.org/3/library/sys.html#sys.platform Bug: 1007872 Change-Id: Id4bb6e1da1d3244fcd245569fd74fd204ce1e9ad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1824843 Commit-Queue: Edward Lesmes Auto-Submit: Victor Costan Reviewed-by: Edward Lesmes --- download_from_google_storage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/download_from_google_storage.py b/download_from_google_storage.py index 3dcc86243..0fc3c5666 100755 --- a/download_from_google_storage.py +++ b/download_from_google_storage.py @@ -38,7 +38,8 @@ GSUTIL_DEFAULT_PATH = os.path.join( PLATFORM_MAPPING = { 'cygwin': 'win', 'darwin': 'mac', - 'linux2': 'linux', + 'linux': 'linux', # Python 3.3+. + 'linux2': 'linux', # Python < 3.3 uses "linux2" / "linux3". 'win32': 'win', 'aix6': 'aix', 'aix7': 'aix',