mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
lint: find the current build like checkupdates does
This commit is contained in:
parent
606cda591d
commit
fe0af55a6a
1 changed files with 8 additions and 8 deletions
|
|
@ -165,23 +165,23 @@ def main():
|
||||||
apps = common.read_app_args(args, allapps, False)
|
apps = common.read_app_args(args, allapps, False)
|
||||||
|
|
||||||
for appid, app in apps.iteritems():
|
for appid, app in apps.iteritems():
|
||||||
curid = appid
|
|
||||||
lastcommit = ''
|
|
||||||
|
|
||||||
if app['Disabled']:
|
if app['Disabled']:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
curid = appid
|
||||||
count['app_total'] += 1
|
count['app_total'] += 1
|
||||||
|
|
||||||
|
curbuild = None
|
||||||
for build in app['builds']:
|
for build in app['builds']:
|
||||||
if build['commit'] and not build['disable']:
|
if not curbuild or int(build['vercode']) > int(curbuild['vercode']):
|
||||||
lastcommit = build['commit']
|
curbuild = build
|
||||||
|
|
||||||
# Potentially incorrect UCM
|
# Potentially incorrect UCM
|
||||||
if (app['Update Check Mode'] == 'RepoManifest' and
|
if (curbuild and curbuild['commit']
|
||||||
any(s in lastcommit for s in '.,_-/')):
|
and app['Update Check Mode'] == 'RepoManifest' 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'" % (
|
||||||
lastcommit, app['Update Check Mode']))
|
curbuild['commit'], app['Update Check Mode']))
|
||||||
|
|
||||||
# Summary size limit
|
# Summary size limit
|
||||||
summ_chars = len(app['Summary'])
|
summ_chars = len(app['Summary'])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue