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

Unified Diff: tools/dart/update.py

Issue 943843003: Attempt to fix the nacl bots (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dart/update.py
diff --git a/tools/dart/update.py b/tools/dart/update.py
index 3bc9a63759b32dd1132177a4bdc8181912af4854..00db7912736ce8e74469ce22d84352bd224f9237 100755
--- a/tools/dart/update.py
+++ b/tools/dart/update.py
@@ -54,7 +54,8 @@ def main():
if get_sdk:
# Completely remove all traces of the previous SDK.
- shutil.rmtree(DART_SDK_DIR)
+ if os.path.exists(DART_SDK_DIR):
+ shutil.rmtree(DART_SDK_DIR)
os.mkdir(DART_SDK_DIR)
wget_command = ['wget', '-N', '-c', LINUX_64_SDK, '-P', DART_SDK_DIR]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698