mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03: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:
parent
7e529c495e
commit
a8ec149cd4
1 changed files with 2 additions and 1 deletions
|
|
@ -141,7 +141,8 @@ def main():
|
||||||
# Potentially incorrect UCM
|
# Potentially incorrect UCM
|
||||||
if (curbuild and curbuild['commit']
|
if (curbuild and curbuild['commit']
|
||||||
and app['Update Check Mode'] == 'RepoManifest'
|
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 '.,_-/')):
|
and any(s in curbuild['commit'] for s in '.,_-/')):
|
||||||
pwarn("Last used commit '%s' looks like a tag, but Update Check Mode is '%s'" % (
|
pwarn("Last used commit '%s' looks like a tag, but Update Check Mode is '%s'" % (
|
||||||
curbuild['commit'], app['Update Check Mode']))
|
curbuild['commit'], app['Update Check Mode']))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue