From ba96af1a78737b20372a06505f6431a0cae480a5 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 29 Oct 2013 17:39:05 +0000 Subject: [PATCH] Wiki update code for disabled builds can be simplified now --- fdroidserver/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index ac99b2ac..b6211966 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -88,14 +88,14 @@ def update_wiki(apps, apks, verbose=False): apklist.append(apk) # Include ones we can't build, as a special case... for thisbuild in app['builds']: - if thisbuild['commit'].startswith('!') or 'disable' in thisbuild: + if 'disable' in thisbuild: if thisbuild['vercode'] == app['Current Version Code']: cantupdate = True apklist.append({ #TODO: Nasty: vercode is a string in the build, and an int elsewhere 'versioncode': int(thisbuild['vercode']), 'version': thisbuild['version'], - 'buildproblem': thisbuild.get('disable', thisbuild['commit'][1:]) + 'buildproblem': thisbuild['disable'] }) else: builtit = False