Make msys depot_tools upgrade process smoother.

R=agable@chromium.org, dnj@chromium.org, mmoss@chromium.org
BUG=600028

Review URL: https://codereview.chromium.org/1848353003 .

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299677 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
iannucci@chromium.org
2016-04-04 19:50:20 +00:00
parent ce0cec6f3d
commit 3466b0d6a6
3 changed files with 37 additions and 4 deletions

10
gclient
View File

@@ -7,6 +7,16 @@ base_dir=$(dirname "$0")
if [[ "#grep#fetch#cleanup#diff#" != *"#$1#"* ]]; then
"$base_dir"/update_depot_tools "$@"
case $? in
123)
# msys environment was upgraded, need to quit.
exit 0
;;
0)
;;
*)
exit $?
esac
fi
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"