From: Daniel Martí Date: Fri, 24 Jan 2014 16:46:50 +0000 (+0100) Subject: Don't warn about tags UCM usage if UCM:None X-Git-Tag: 0.2~371 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6855b6c44288534be3a41c3a778761b5af5bf53b;p=fdroidserver.git Don't warn about tags UCM usage if UCM:None --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 1142818a..f9f55d22 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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']))