1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Fix "no such package" search logic

This commit is contained in:
Daniel Martí 2014-08-25 00:27:46 +02:00
parent b43f7bea1a
commit f7f8c80018

View File

@ -273,9 +273,8 @@ def read_app_args(args, allapps, allow_vercodes=False):
apps[appid] = app
if len(apps) != len(vercodes):
allids = [app["id"] for app in allapps]
for p in vercodes:
if p not in allids:
if p not in allapps:
logging.critical("No such package: %s" % p)
raise FDroidException("Found invalid app ids in arguments")
if not apps: