Don't call download twice

This commit is contained in:
Cheng Zhao 2015-04-07 23:39:08 +08:00
parent d1fb13b260
commit feeb1da5ca
2 changed files with 5 additions and 5 deletions

View file

@ -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])

@ -1 +1 @@
Subproject commit 97917e790421e8617ce685a1e32cf98a64052f7a
Subproject commit d4f20e2775350ec53506aba4244115dc5ca6d7b8