chiark / gitweb /
--latest now goes to the last enabled build
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 08:58:17 +0000 (09:58 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 20 Jan 2014 08:58:17 +0000 (09:58 +0100)
fdroidserver/build.py

index 4ec8468627096f338eb889f0a4f1d3cea1ecc8d1..722fd4aa00105d9d5ecdaac118040e3dc874f47f 100644 (file)
@@ -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