chiark / gitweb /
lint: better footer output logic
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 28 Aug 2015 22:53:10 +0000 (15:53 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 28 Aug 2015 22:53:10 +0000 (15:53 -0700)
fdroidserver/lint.py

index 95ae81cf957ffcaad2ea1fbde8778d58204d1d82..1ac83a22893b24a7e03119e08901823e45f0b209 100644 (file)
@@ -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()