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:
ce8f74c
)
lint: better footer output logic
author
Daniel Martí
<mvdan@mvdan.cc>
Fri, 28 Aug 2015 22:53:10 +0000
(15:53 -0700)
committer
Daniel Martí
<mvdan@mvdan.cc>
Fri, 28 Aug 2015 22:53:10 +0000
(15:53 -0700)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index 95ae81cf957ffcaad2ea1fbde8778d58204d1d82..1ac83a22893b24a7e03119e08901823e45f0b209 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-301,10
+301,11
@@
def main():
if not curid:
print
- logging.info("Found a total of %i warnings in %i apps out of %i total." % (
- count['warn'], count['app'], count['app_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']))
+ sys.exit(1)
- sys.exit(1 if count['warn'] > 0 else 0)
if __name__ == "__main__":
main()