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

Unified Diff: build_apprtc_closure.py

Issue 878903003: Retry npm calls since they seem a bit unreliable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/webrtc/webrtc.DEPS/
Patch Set: Created 5 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 | utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build_apprtc_closure.py
===================================================================
--- build_apprtc_closure.py (revision 293821)
+++ build_apprtc_closure.py (working copy)
@@ -11,7 +11,6 @@
import os
import shutil
-import subprocess
import sys
import utils
@@ -34,7 +33,7 @@
npm_bin = os.path.join(node_path, 'bin', 'npm')
node_bin = os.path.join(node_path, 'bin', 'node')
- subprocess.check_call([npm_bin, 'install'])
+ utils.RunSubprocessWithRetry([npm_bin, 'install'])
local_grunt_bin = os.path.join('node_modules', 'grunt-cli', 'bin', 'grunt')
if not os.path.exists(local_grunt_bin):
@@ -41,7 +40,8 @@
return ('Missing grunt-cli in the webrtc-samples checkout; did '
'npm install fail?')
- subprocess.check_call([node_bin, local_grunt_bin, 'closurecompiler:debug'])
+ utils.RunSubprocessWithRetry([node_bin, local_grunt_bin,
+ 'closurecompiler:debug'])
if __name__ == '__main__':
« no previous file with comments | « no previous file | utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698