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

Unified Diff: build_apprtc_appengine_app.py

Issue 1566963004: Use cleanup with retry on Windows for all scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/webrtc/webrtc.DEPS@master
Patch Set: Created 4 years, 11 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 | build_apprtc_collider.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_apprtc_appengine_app.py
diff --git a/build_apprtc_appengine_app.py b/build_apprtc_appengine_app.py
index 9d15b7557afed2b10a12461237269280b6f52f6e..32f98534e1f1afcb08a40cd741b44165202da053 100755
--- a/build_apprtc_appengine_app.py
+++ b/build_apprtc_appengine_app.py
@@ -35,7 +35,7 @@ def _WorkAroundMacNpmCorruptedDataOnInstall(command):
print 'Wiping .npm folder and trying again...'
npm_storage = os.path.expanduser('~/.npm')
assert npm_storage.endswith('.npm')
- shutil.rmtree(npm_storage, ignore_errors=True)
+ utils.RemoveDirectory(npm_storage)
utils.RunSubprocessWithRetry(command)
@@ -49,7 +49,7 @@ def main():
_WorkaroundPhantomJsOnWin(apprtc_path)
os.chdir(apprtc_path)
-
+
if utils.GetPlatform() is 'win':
npm_bin = os.path.join(node_path, 'npm.cmd')
node_bin = os.path.join(node_path, 'node.exe')
« no previous file with comments | « no previous file | build_apprtc_collider.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698