chiark / gitweb /
Don't warn about tags UCM usage if UCM:None
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 24 Jan 2014 16:46:50 +0000 (17:46 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 24 Jan 2014 17:25:06 +0000 (18:25 +0100)
fdroidserver/lint.py

index 1142818a40931893cc78503a6190b1fbd8fc8135..f9f55d2253b86da46ecf9156cdee89523875e7aa 100644 (file)
@@ -88,7 +88,7 @@ def main():
                 lastcommit = build['commit']
 
         # Potentially incorrect UCM
-        if (app['Update Check Mode'] in ['RepoManifest', 'None'] and
+        if (app['Update Check Mode'].startswith('RepoManifest') and
                 any(s in lastcommit for s in ('.', ',', '_', '-', '/'))):
             warn("Last used commit '%s' looks like a tag, but Update Check Mode is '%s'" % (
                 lastcommit, app['Update Check Mode']))