Fix download and download_sources to aggressively get all targets
Run any target that depends on download_file, no matter what its name is. This allows grabbing codemirror without confusing the __download_bin case with assuming a __download_src target exists. Change-Id: Iaf7cc3000164aa46376314f8d24dc1f057ab06c3
This commit is contained in:
@@ -16,7 +16,7 @@ genrule(
|
||||
]),
|
||||
srcs = [genfile('codemirror-' + VERSION + '.zip')],
|
||||
deps = [
|
||||
':codemirror__download_bin',
|
||||
':download',
|
||||
'//lib:LICENSE-codemirror',
|
||||
],
|
||||
out = 'codemirror.jar',
|
||||
@@ -24,7 +24,7 @@ genrule(
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = 'codemirror__download_bin',
|
||||
name = 'download',
|
||||
cmd = '${//tools:download_file}' +
|
||||
' -o $OUT' +
|
||||
' -u ' + URL +
|
||||
|
||||
@@ -18,7 +18,7 @@ import re
|
||||
from subprocess import check_call, CalledProcessError, Popen, PIPE
|
||||
|
||||
MAIN = ['//tools/eclipse:classpath']
|
||||
PAT = re.compile(r'"(//.*?__download_[^"]*)" -> "//tools:download_file"')
|
||||
PAT = re.compile(r'"(//.*?)" -> "//tools:download_file"')
|
||||
|
||||
opts = OptionParser()
|
||||
opts.add_option('--src', action='store_true')
|
||||
|
||||
Reference in New Issue
Block a user