1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

lint: Improve UCM:Tags warning

If the vercode is higher than CVC, then we're probably only following stable
versions or something like that
This commit is contained in:
Daniel Martí 2015-06-05 17:04:05 +02:00
parent 7e529c495e
commit a8ec149cd4

View File

@ -141,7 +141,8 @@ def main():
# Potentially incorrect UCM
if (curbuild and curbuild['commit']
and app['Update Check Mode'] == 'RepoManifest'
and curbuild['commit'] != 'unknown - see disabled'
and not curbuild['commit'].startswith('unknown')
and curbuild['vercode'] == app['Current Version Code']
and any(s in curbuild['commit'] for s in '.,_-/')):
pwarn("Last used commit '%s' looks like a tag, but Update Check Mode is '%s'" % (
curbuild['commit'], app['Update Check Mode']))