mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
lint: better footer output logic
This commit is contained in:
parent
ce8f74c98e
commit
a4236d62cd
@ -301,10 +301,11 @@ def main():
|
|||||||
if not curid:
|
if not curid:
|
||||||
print
|
print
|
||||||
|
|
||||||
logging.info("Found a total of %i warnings in %i apps out of %i total." % (
|
if count['warn'] > 0:
|
||||||
count['warn'], count['app'], count['app_total']))
|
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__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user