From af37af3e1cb0d61e1b89588ecd37cd20065e2f00 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Sun, 12 Apr 2015 21:55:17 +0800 Subject: [PATCH] Rename some functions in bootstrap.py --- script/bootstrap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index ba9c0b0b1d9a..f67a790a04ce 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -31,8 +31,8 @@ def main(): create_chrome_version_h() touch_config_gypi() - update_atom_shell() - update_atom_modules('spec', args.target_arch) + run_update() + update_electron_modules('spec', args.target_arch) def parse_args(): @@ -92,7 +92,7 @@ def update_node_modules(dirname, env=None): execute_stdout([NPM, 'install'], env) -def update_atom_modules(dirname, target_arch): +def update_electron_modules(dirname, target_arch): env = os.environ.copy() env['npm_config_arch'] = target_arch env['npm_config_target'] = get_atom_shell_version() @@ -133,7 +133,7 @@ def touch_config_gypi(): f.write(content) -def update_atom_shell(): +def run_update(): update = os.path.join(SOURCE_ROOT, 'script', 'update.py') execute_stdout([sys.executable, update])