mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
lint: exit with an error code if any errors are found
This commit is contained in:
parent
bc5d5cbd83
commit
fd6e323ba9
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user