chiark / gitweb /
lint: exit with an error code if any errors are found
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 30 Jul 2015 19:46:42 +0000 (12:46 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 30 Jul 2015 19:46:42 +0000 (12:46 -0700)
fdroidserver/lint.py

index 421b2b881c11ff105f4bf555207d5e1e096c95a4..314366e1108121a863721bc740d1f86e88dc8205 100644 (file)
@@ -22,6 +22,7 @@ import re
 import logging
 import common
 import metadata
+import sys
 from collections import Counter
 from sets import Set
 
@@ -232,5 +233,7 @@ def main():
     logging.info("Found a total of %i warnings in %i apps out of %i total." % (
         count['warn'], count['app'], count['app_total']))
 
+    sys.exit(1 if count['warn'] > 0 else 0)
+
 if __name__ == "__main__":
     main()