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 apps[appid] = app
if len(apps) != len(vercodes): if len(apps) != len(vercodes):
allids = [app["id"] for app in allapps]
for p in vercodes: for p in vercodes:
if p not in allids: if p not in allapps:
logging.critical("No such package: %s" % p) logging.critical("No such package: %s" % p)
raise FDroidException("Found invalid app ids in arguments") raise FDroidException("Found invalid app ids in arguments")
if not apps: if not apps: