Only install latest apk of each app, other fixes

This commit is contained in:
Daniel Martí 2013-12-11 19:08:15 +01:00
parent 93d8d23cee
commit 21db79eea2
3 changed files with 61 additions and 50 deletions

View file

@ -877,6 +877,15 @@ def main():
allapps = metadata.read_metadata(xref=not options.onserver)
apps = common.read_app_args(args, options, allapps)
apps = [app for app in apps if (options.force or not app['Disabled']) and
len(app['Repo Type']) > 0 and len(app['builds']) > 0]
if len(apps) == 0:
raise Exception("No apps to process.")
if options.latest:
for app in apps:
app['builds'] = app['builds'][-1:]
if options.wiki:
import mwclient