[bootstraps] Sync at gclient, suppress output.

Have the "update_depot_tools" script also do a CIPD tool sync. This will
ensure that users and systems have access to tooling at sync-time rather
than just-in-time loading them at execution time.

Update the tool boostraps to suppress any sort of syncing logic, if it
does happen. This will ensure that users who execute the tools don't se
unexpected output.

BUG=None
TEST=local
  - Tested on Mac and Windows.

R=dpranke@chromium.org, iannucci@chromium.org

Change-Id: I8efce8c73cc4e82ffdf5067ba9b917119a81e843
Reviewed-on: https://chromium-review.googlesource.com/581494
Commit-Queue: Daniel Jacques <dnj@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
This commit is contained in:
Dan Jacques
2017-07-24 18:29:02 +02:00
committed by Commit Bot
parent 357415cb11
commit 4d92fe4300
8 changed files with 28 additions and 13 deletions

View File

@@ -112,11 +112,17 @@ function update_git_repo {
}
# Update git checkouts.
if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.git" ]
then
cd $base_dir
update_git_repo
cd - > /dev/null
if [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then
if [ -e "$base_dir/.git" ]; then
cd $base_dir
update_git_repo
cd - > /dev/null
fi
# Sync CIPD and CIPD client tools.
source "$base_dir/cipd_bin_setup.sh"
cipd_bin_setup
find "$base_dir" -iname "*.pyc" -exec rm -f {} \;
fi
find "$base_dir" -iname "*.pyc" -exec rm -f {} \;