From: Cheng Zhao Date: Tue, 2 Jul 2013 01:31:43 +0000 (+0800) Subject: Only create config.gypi if it doesn't exist. X-Git-Tag: v0.1.0~47 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=dc1655979e86f00f6efa51f30940a56efac4d5e0;p=electron.git Only create config.gypi if it doesn't exist. Otherwise every call of bootstrap would trigger recompilation of some files. --- diff --git a/script/bootstrap.py b/script/bootstrap.py index a90df1a2..73bae35e 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -70,8 +70,9 @@ def update_win32_python(): def touch_config_gypi(): config_gypi = os.path.join(SOURCE_ROOT, 'vendor', 'node', 'config.gypi') - with open(config_gypi, 'w+') as f: - f.truncate(0) + if not os.path.exists(config_gypi): + with open(config_gypi, 'w+') as f: + f.truncate(0) def update_atom_shell():