From 75a0d7a76b8277a11a85b745eaccb07a003922b9 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 28 Jan 2021 01:43:54 -0800 Subject: [PATCH] devops(chromium): install depot_tools if missing (#5204) --- browser_patches/chromium/.gitignore | 1 + browser_patches/chromium/build.sh | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/browser_patches/chromium/.gitignore b/browser_patches/chromium/.gitignore index 1f57b975cd..23b33df7f1 100644 --- a/browser_patches/chromium/.gitignore +++ b/browser_patches/chromium/.gitignore @@ -1 +1,2 @@ /output +/depot_tools diff --git a/browser_patches/chromium/build.sh b/browser_patches/chromium/build.sh index 620e2000fd..fde8fb8e13 100755 --- a/browser_patches/chromium/build.sh +++ b/browser_patches/chromium/build.sh @@ -34,10 +34,11 @@ compile_chromium() { echo "ERROR: chromium compilation requires CR_CHECKOUT_PATH to be set to reuse checkout." exit 1 fi - if ! command -v gclient >/dev/null; then - echo "ERROR: chromium compilation requires depot_tools to be installed!" - exit 1 + + if [[ ! -d "${SCRIPT_PATH}/depot_tools" ]]; then + git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "${SCRIPT_PATH}/depot_tools" fi + export PATH="${SCRIPT_PATH}/depot_tools:$PATH" CHROMIUM_FOLDER_NAME="" CHROMIUM_FILES_TO_ARCHIVE=()