| Index: build/android/gyp/ant.py
|
| diff --git a/build/android/gyp/ant.py b/build/android/gyp/ant.py
|
| index fc1b3afbf920074dc1faeb4d0c9b5a27a725fec5..8946067f4440c10cd594246ed192447045cdac12 100755
|
| --- a/build/android/gyp/ant.py
|
| +++ b/build/android/gyp/ant.py
|
| @@ -18,27 +18,27 @@ Also, when a command fails, this script will re-run that ant command with the
|
| import sys
|
| import traceback
|
|
|
| -from util import build_utils
|
| +from util import build_utils # pylint: disable=F0401
|
|
|
|
|
| def main(argv):
|
| try:
|
| args = argv[1:]
|
| stdout = build_utils.CheckOutput(['ant'] + args)
|
| - except build_utils.CalledProcessError as e:
|
| + except build_utils.CalledProcessError:
|
| # It is very difficult to diagnose ant failures without the '-verbose'
|
| # argument. So, when an ant command fails, re-run it with '-verbose' so that
|
| # the cause of the failure is easier to identify.
|
| verbose_args = ['-verbose'] + [a for a in argv[1:] if a != '-quiet']
|
| try:
|
| stdout = build_utils.CheckOutput(['ant'] + verbose_args)
|
| - except build_utils.CalledProcessError as e:
|
| + except build_utils.CalledProcessError:
|
| traceback.print_exc()
|
| sys.exit(1)
|
|
|
| # If this did sys.exit(1), building again would succeed (which would be
|
| # awkward). Instead, just print a big warning.
|
| - build_util.PrintBigWarning(
|
| + build_utils.PrintBigWarning(
|
| 'This is unexpected. `ant ' + ' '.join(args) + '` failed.' +
|
| 'But, running `ant ' + ' '.join(verbose_args) + '` passed.')
|
|
|
|
|