1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 17:00:12 +01:00

Wiki update code for disabled builds can be simplified now

This commit is contained in:
Ciaran Gultnieks 2013-10-29 17:39:05 +00:00
parent 392e547c1a
commit ba96af1a78

View File

@ -88,14 +88,14 @@ def update_wiki(apps, apks, verbose=False):
apklist.append(apk) apklist.append(apk)
# Include ones we can't build, as a special case... # Include ones we can't build, as a special case...
for thisbuild in app['builds']: for thisbuild in app['builds']:
if thisbuild['commit'].startswith('!') or 'disable' in thisbuild: if 'disable' in thisbuild:
if thisbuild['vercode'] == app['Current Version Code']: if thisbuild['vercode'] == app['Current Version Code']:
cantupdate = True cantupdate = True
apklist.append({ apklist.append({
#TODO: Nasty: vercode is a string in the build, and an int elsewhere #TODO: Nasty: vercode is a string in the build, and an int elsewhere
'versioncode': int(thisbuild['vercode']), 'versioncode': int(thisbuild['vercode']),
'version': thisbuild['version'], 'version': thisbuild['version'],
'buildproblem': thisbuild.get('disable', thisbuild['commit'][1:]) 'buildproblem': thisbuild['disable']
}) })
else: else:
builtit = False builtit = False