From 80cea4f5fc66293424679e313c1b5c53d8a7b962 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 1 Dec 2020 20:22:18 +0000 Subject: [PATCH] repo: only warn if update_depot_tools does not exist It looks like some bots don't have this for whatever reason. Bug: 1148984 Change-Id: I7ff826e0a0df78e3be9e1f84698b69574c75f71c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2567384 Reviewed-by: Sean McAllister Reviewed-by: LaMont Jones Commit-Queue: Mike Frysinger --- repo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/repo b/repo index be12be474..2d9301fcd 100755 --- a/repo +++ b/repo @@ -35,7 +35,11 @@ def _UpdateDepotTools(): return path = path.parent - subprocess.run([UPDATE_DEPOT_TOOLS], check=True) + if UPDATE_DEPOT_TOOLS.exists(): + subprocess.run([UPDATE_DEPOT_TOOLS], check=True) + else: + print(f'warning: {UPDATE_DEPOT_TOOLS} does not exist; export ' + 'DEPOT_TOOLS_UPDATE=0 to disable.', file=sys.stderr) def main(argv):