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:
e19ef06
)
Warn about branches used in commit=
author
Daniel Martí
<mvdan@mvdan.cc>
Mon, 20 Jan 2014 10:10:00 +0000
(11:10 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Mon, 20 Jan 2014 10:10:00 +0000
(11:10 +0100)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index 3fbf89c649237bf04c1771b2107c75281035bc65..de805527a89652fa139fdf339b6f1d4cc4c3e3f3 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-109,6
+109,15
@@
def main():
if m.match(app[f]):
warn("%s url '%s': %s" % (f, app[f], r))
+ # Build warnings
+ for build in app['builds']:
+ for n in ['master', 'origin/', 'default', 'trunk']:
+ if 'commit' not in build:
+ continue
+ if build['commit'].startswith(n):
+ warn("Branch '%s' used as commit" % n)
+
+
if not appid:
print