chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5d5cb
)
lint: exit with an error code if any errors are found
author
Daniel Martí
<mvdan@mvdan.cc>
Thu, 30 Jul 2015 19:46:42 +0000
(12:46 -0700)
committer
Daniel Martí
<mvdan@mvdan.cc>
Thu, 30 Jul 2015 19:46:42 +0000
(12:46 -0700)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index 421b2b881c11ff105f4bf555207d5e1e096c95a4..314366e1108121a863721bc740d1f86e88dc8205 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-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()