From bebadde87720be498e4fec59acfec2a3b2efd731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 20 Jan 2014 09:58:17 +0100 Subject: [PATCH] --latest now goes to the last enabled build --- fdroidserver/build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index 4ec84686..722fd4aa 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -886,7 +886,11 @@ def main(): if options.latest: for app in apps: - app['builds'] = app['builds'][-1:] + for build in reversed(app['builds']): + if 'disable' in build: + continue + app['builds'] = [ build ] + break if options.wiki: import mwclient