chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b5d510
)
Let the no such package logs in first
author
Daniel Martí
<mvdan@mvdan.cc>
Fri, 14 Feb 2014 23:40:25 +0000
(
00:40
+0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Fri, 14 Feb 2014 23:40:25 +0000
(
00:40
+0100)
fdroidserver/common.py
patch
|
blob
|
history
diff --git
a/fdroidserver/common.py
b/fdroidserver/common.py
index 0338a4027bb280008b90cfcf1593703c08f6f90f..b10e2e2f8e2d4ed3cd1bd54a0f73499796e0750d 100644
(file)
--- a/
fdroidserver/common.py
+++ b/
fdroidserver/common.py
@@
-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: