From: Daniel Martí Date: Fri, 28 Aug 2015 22:53:10 +0000 (-0700) Subject: lint: better footer output logic X-Git-Tag: 0.5.0~163 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a4236d62cdc956f20f1e532473025ab39e9171b6;p=fdroidserver.git lint: better footer output logic --- 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()