mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Only install latest apk of each app, other fixes
This commit is contained in:
parent
93d8d23cee
commit
21db79eea2
3 changed files with 61 additions and 50 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue