chiark / gitweb /
Also warn if UCM is None when using tags in commit=
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 11:18:50 +0000 (12:18 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 11:18:50 +0000 (12:18 +0100)
fdroidserver/lint.py

index 1e80cc5b16fe1b7716d6b6674a855bce740f4e28..501532fdc289df31d5ac66103309bc8c443a66e9 100644 (file)
@@ -85,9 +85,10 @@ def main():
                 lastcommit = build['commit']
 
         # Potentially incorrect UCM
-        if (app['Update Check Mode'] == 'RepoManifest' and
+        if (app['Update Check Mode'] in ['RepoManifest', 'None'] and
                 any(s in lastcommit for s in ('.', ',', '_', '-', '/'))):
-            warn("Last used commit '%s' looks like a tag, but Update Check Mode is RepoManifest" % lastcommit)
+            warn("Last used commit '%s' looks like a tag, but Update Check Mode is '%s'" % (
+                lastcommit, app['Update Check Mode']))
 
         # No license
         if app['License'] == 'Unknown':