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

Unified Diff: scripts/common/chromium_utils.py

Issue 157073002: Bot update! (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Chromium commands fix Created 6 years, 10 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
« no previous file with comments | « no previous file | scripts/master/factory/commands.py » ('j') | scripts/slave/bot_update.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/common/chromium_utils.py
diff --git a/scripts/common/chromium_utils.py b/scripts/common/chromium_utils.py
index 8dc99953232fa102b82125a086a3d7ad944ad5bc..6f06995b046a5d1def2ea82e70571845587b8efe 100644
--- a/scripts/common/chromium_utils.py
+++ b/scripts/common/chromium_utils.py
@@ -407,6 +407,11 @@ def RemoveDirectory(*path):
if not os.path.exists(file_path):
return
+ if os.path.isfile(os.path.join(file_path, 'update.flag')):
+ print 'update.flag file found: bot_update has run and checkout is already '
+ print 'in a consistent state. No actions will be performed in this step.'
+ return
+
if sys.platform == 'win32':
# Give up and use cmd.exe's rd command.
file_path = os.path.normcase(file_path)
« no previous file with comments | « no previous file | scripts/master/factory/commands.py » ('j') | scripts/slave/bot_update.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698