chiark / gitweb /
Let the no such package logs in first
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 14 Feb 2014 23:40:25 +0000 (00:40 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 14 Feb 2014 23:40:25 +0000 (00:40 +0100)
fdroidserver/common.py

index 0338a4027bb280008b90cfcf1593703c08f6f90f..b10e2e2f8e2d4ed3cd1bd54a0f73499796e0750d 100644 (file)
@@ -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: