From fdb9ce32d7a868a2af87b16b9c58f5153c508a2d Mon Sep 17 00:00:00 2001 From: "hinoka@chromium.org" Date: Tue, 5 Apr 2016 23:57:12 +0000 Subject: [PATCH] Add in option to always disable gsutil version check In theory this shouldn't fire if gsutil is running without a tty (ie, in a subprocess). In practice we're still seeing processes hang because it still thinks it's in a tty This should in theory disable the prompt for good BUG=577325,576979 Review URL: https://codereview.chromium.org/1587793002 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299714 0039d316-1c4b-4281-b951-d872f2087c98 --- gsutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsutil.py b/gsutil.py index 4a43f79cc6..d57cafb94c 100755 --- a/gsutil.py +++ b/gsutil.py @@ -125,7 +125,8 @@ def run_gsutil(force_version, fallback, target, args, clean=False): gsutil_bin = ensure_gsutil(force_version, target, clean) else: gsutil_bin = fallback - cmd = [sys.executable, gsutil_bin] + args + disable_update = ['-o', 'GSUtil:software_update_check_period=0'] + cmd = [sys.executable, gsutil_bin] + disable_update + args return subprocess.call(cmd)