mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-17 22:47:16 -04:00
lint: exit with an error code if any errors are found
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user