mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Let the no such package logs in first
This commit is contained in:
parent
8b5d510fe2
commit
d0cde659ca
1 changed files with 2 additions and 2 deletions
|
@ -121,14 +121,14 @@ def read_app_args(args, allapps, allow_vercodes=False):
|
|||
|
||||
apps = [app for app in allapps if app['id'] in vercodes]
|
||||
|
||||
if not apps:
|
||||
raise Exception("No packages specified")
|
||||
if len(apps) != len(vercodes):
|
||||
allids = [app["id"] for app in allapps]
|
||||
for p in vercodes:
|
||||
if p not in allids:
|
||||
logging.critical("No such package: %s" % p)
|
||||
raise Exception("Found invalid app ids in arguments")
|
||||
if not apps:
|
||||
raise Exception("No packages specified")
|
||||
|
||||
error = False
|
||||
for app in apps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue