1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-12 18:20:11 +01:00

lint: better footer output logic

This commit is contained in:
Daniel Martí 2015-08-28 15:53:10 -07:00
parent ce8f74c98e
commit a4236d62cd

View 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()