Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Unified Diff: gclient

Issue 1848353003: Make msys depot_tools upgrade process smoother. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gclient
diff --git a/gclient b/gclient
index 798b2d8d754a07034122aff0e09a6f3782e47afb..a8cab460a827008b5248f2cd439bba59d3d2d477 100755
--- a/gclient
+++ b/gclient
@@ -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" "$@"

Powered by Google App Engine
This is Rietveld 408576698