Merge "Gracefully handle buck audit
failure" into stable-2.9
This commit is contained in:
commit
2b7f4c5060
@ -33,7 +33,11 @@ jars = set()
|
||||
|
||||
def link_jars(libs, directory):
|
||||
makedirs(directory)
|
||||
cp = check_output(['buck', 'audit', 'classpath'] + libs)
|
||||
try:
|
||||
cp = check_output(['buck', 'audit', 'classpath'] + libs)
|
||||
except Exception as e:
|
||||
print('call to buck audit failed: %s' % e, file=sys.stderr)
|
||||
exit(1)
|
||||
for j in cp.strip().splitlines():
|
||||
if j not in jars:
|
||||
jars.add(j)
|
||||
|
Loading…
x
Reference in New Issue
Block a user