Buck: Fix source path generation for JGit cell, again
Change-Id: Ica2fb5ce73dbac6309cad12b263b6bd4deeeee00
This commit is contained in:
parent
0a50c6907c
commit
34e084ed54
@ -19,9 +19,10 @@ from subprocess import check_call, CalledProcessError, Popen, PIPE
|
||||
|
||||
MAIN = ['//tools/eclipse:classpath']
|
||||
PAT = re.compile(r'"(//.*?)" -> "//tools:download_file"')
|
||||
# TODO(davido): Remove this hack when Buck bug is fixed:
|
||||
# TODO(davido): Remove this hack when Buck bugs are fixed:
|
||||
# https://github.com/facebook/buck/issues/656
|
||||
JGIT = re.compile(r'//:ewah|//:jgit|//:junit')
|
||||
# https://github.com/facebook/buck/issues/658
|
||||
JGIT = re.compile(r'//org.eclipse.jgit.*')
|
||||
CELL = '//lib/jgit'
|
||||
|
||||
opts = OptionParser()
|
||||
@ -36,7 +37,7 @@ for line in p.stdout:
|
||||
if m:
|
||||
n = m.group(1)
|
||||
if JGIT.match(n):
|
||||
n = CELL + n[2:]
|
||||
n = CELL + n[1:]
|
||||
if args.src and n.endswith('__download_bin'):
|
||||
n = n[:-13] + 'src'
|
||||
targets.add(n)
|
||||
|
Loading…
Reference in New Issue
Block a user