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__': |