[auto_update] Add control script, allow disable.

Enable a sentinel file to enable/disable "depot_tools" auto-updating.
This file, if present, indicates that automatic updating should not
occur.

Add a simple control script to enable/disable automatic updating.

BUG=chromium:727917
TEST=local
  - Ran locally, --enable, --disable.

R=iannucci@chromium.org, maruel@chromium.org, nodir@chromium.org

Change-Id: Id30a17586248228849d046f79d7e0bc445d97f97
Reviewed-on: https://chromium-review.googlesource.com/521884
Commit-Queue: Daniel Jacques <dnj@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Reviewed-by: Marc-Antoine Ruel <maruel@chromium.org>
This commit is contained in:
Dan Jacques
2017-06-01 15:17:15 -07:00
committed by Commit Bot
parent bbda9719b0
commit 74d7e13315
4 changed files with 47 additions and 0 deletions

3
.gitignore vendored
View File

@@ -6,6 +6,9 @@
/.cipd_client*
/.versions
# Ignore "disable auto update" sentinel file.
.disable_auto_update
# Ignore the batch files produced by the Windows bootstrapping.
/git-bash
/git.bat