mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
Don't call download twice
This commit is contained in:
@@ -31,7 +31,6 @@ def parse_args():
|
||||
|
||||
|
||||
def update_submodules():
|
||||
return
|
||||
return (subprocess.call(['git', 'submodule', 'sync', '--quiet']) or
|
||||
subprocess.call(['git', 'submodule', 'update', '--init',
|
||||
'--recursive']))
|
||||
@@ -42,9 +41,10 @@ def download_libchromiumcontent(is_dev, commit, url):
|
||||
download = os.path.join(VENDOR_DIR, 'libchromiumcontent', 'script',
|
||||
'download')
|
||||
target = os.path.join(DOWNLOAD_DIR, 'libchromiumcontent')
|
||||
subprocess.check_call([sys.executable, download, '-f', '-c', commit, url,
|
||||
target])
|
||||
if not is_dev:
|
||||
if is_dev:
|
||||
subprocess.check_call([sys.executable, download, '-f', '-c', commit, url,
|
||||
target])
|
||||
else:
|
||||
subprocess.check_call([sys.executable, download, '-s', '-f', '-c', commit,
|
||||
url, target])
|
||||
|
||||
|
||||
2
brightray/vendor/libchromiumcontent
vendored
2
brightray/vendor/libchromiumcontent
vendored
Submodule brightray/vendor/libchromiumcontent updated: 97917e7904...d4f20e2775
Reference in New Issue
Block a user