From a4236d62cdc956f20f1e532473025ab39e9171b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 28 Aug 2015 15:53:10 -0700 Subject: [PATCH] lint: better footer output logic --- fdroidserver/lint.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 95ae81cf..1ac83a22 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -301,10 +301,11 @@ def main(): if not curid: print - logging.info("Found a total of %i warnings in %i apps out of %i total." % ( - count['warn'], count['app'], count['app_total'])) + if count['warn'] > 0: + logging.warn("Found a total of %i warnings in %i apps out of %i total." % ( + count['warn'], count['app'], count['app_total'])) + sys.exit(1) - sys.exit(1 if count['warn'] > 0 else 0) if __name__ == "__main__": main()