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

Unified Diff: tools/get_archive.py

Issue 204593002: Print a useful message when test scripts cannot update a running dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« 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/get_archive.py
diff --git a/tools/get_archive.py b/tools/get_archive.py
index a00bb9cb40a15b7c46ecf95f12640bffca63652c..43cbcfd2a57d4fe8fa95708f37f379d06ac96956 100755
--- a/tools/get_archive.py
+++ b/tools/get_archive.py
@@ -288,6 +288,10 @@ def GetFromGsutil(name, directory, version_file, latest_pattern,
z.close()
if directory == SDK_DIR:
unzipped_dir = os.path.join(temp_dir, 'dart-sdk')
+ if os.path.exists(directory):
+ raise Exception(
+ 'Removal of directory %s failed. Is the executable running?' %
+ directory)
shutil.move(unzipped_dir, directory)
finally:
shutil.rmtree(temp_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