From 5ccff31f528b38397a12e88c4377d18e369a2e5c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 1 Jul 2013 16:12:31 +0800 Subject: [PATCH] Add switch to skip operations require networking. I'm on a slow network :-( --- script/bootstrap.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index 45f9927a..91cc7702 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -21,20 +21,26 @@ def main(): args = parse_args() update_submodules() bootstrap_brightray(args.url) - update_node_modules() - if sys.platform == 'cygwin': - update_win32_python() + + if not args.skip_network: + update_node_modules() + if sys.platform == 'cygwin': + update_win32_python() + update_atom_shell() def parse_args(): parser = argparse.ArgumentParser(description='Bootstrap this project') - parser.add_argument('--url', + parser.add_argument('-u', '--url', help='The base URL from which to download ' 'libchromiumcontent (i.e., the URL you passed to ' 'libchromiumcontent\'s script/upload script', default=BASE_URL, required=False) + parser.add_argument('-s', '--skip-network', + help='Skip operations require networking', + action='store_true') return parser.parse_args() -- 2.43.0