Add 'fdroid install', more rewriting

This commit is contained in:
Daniel Martí 2013-12-11 18:35:58 +01:00
parent a4780c2107
commit 93d8d23cee
4 changed files with 122 additions and 20 deletions

View file

@ -132,7 +132,12 @@ def read_app_args(args, options, allapps):
print "No such package: %s" % p
raise Exception("Found invalid app ids in arguments")
apps = [app for app in apps if (options.force or not app['Disabled']) and
if hasattr(options, "force"):
force = options.force
else:
force = False
apps = [app for app in apps if (force or not app['Disabled']) and
app['builds'] and len(app['Repo Type']) > 0 and len(app['builds']) > 0]
if len(apps) == 0:
raise Exception("No apps to process.")