From: IgorKlopov Date: Sun, 7 Dec 2014 23:52:13 +0000 (+0300) Subject: One more `verbose_mode` X-Git-Tag: v0.20.0~6^2~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=19bba5c18cdf62d31dace404289cda700169959e;p=electron.git One more `verbose_mode` `bootstrap.py` new variable `verbose_mode` to run `npm install` with --verbose option --- diff --git a/script/bootstrap.py b/script/bootstrap.py index 9a95b1e0..01859909 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -14,12 +14,17 @@ PYTHON_26_URL = 'https://chromium.googlesource.com/chromium/deps/python_26' NPM = 'npm.cmd' if sys.platform in ['win32', 'cygwin'] else 'npm' +verbose_mode = False + + def main(): os.chdir(SOURCE_ROOT) args = parse_args() if args.verbose: enable_verbose_execute() + global verbose_mode + verbose_mode = True update_submodules() update_node_modules('.') update_atom_modules('spec') @@ -61,7 +66,10 @@ def bootstrap_brightray(url): def update_node_modules(dirname): with scoped_cwd(dirname): - execute_stdout([NPM, 'install']) + if verbose_mode: + execute_stdout([NPM, 'install', '--verbose']) + else: + execute_stdout([NPM, 'install']) def update_atom_modules(dirname):