chiark / gitweb /
Warn about branches used in commit=
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 10:10:00 +0000 (11:10 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 10:10:00 +0000 (11:10 +0100)
fdroidserver/lint.py

index 3fbf89c649237bf04c1771b2107c75281035bc65..de805527a89652fa139fdf339b6f1d4cc4c3e3f3 100644 (file)
@@ -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