Merge "Gracefully handle buck audit failure" into stable-2.9

This commit is contained in:
David Pursehouse 2014-09-05 09:10:36 +00:00 committed by Gerrit Code Review
commit 2b7f4c5060

View File

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