mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
lint: better footer output logic
This commit is contained in:
parent
ce8f74c98e
commit
a4236d62cd
1 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||||
|
logging.warn("Found a total of %i warnings in %i apps out of %i total." % (
|
||||||
count['warn'], count['app'], count['app_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…
Add table
Add a link
Reference in a new issue