mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-10 17:20:29 +03:00
check for invalid appids passed to commands
This commit is contained in:
parent
380f3b2e9f
commit
3e557a1a8a
5 changed files with 36 additions and 13 deletions
|
|
@ -188,6 +188,7 @@ def main():
|
|||
logging.error(_("No unsigned directory - nothing to do"))
|
||||
sys.exit(0)
|
||||
|
||||
processed = set()
|
||||
verified = 0
|
||||
notverified = 0
|
||||
|
||||
|
|
@ -204,6 +205,8 @@ def main():
|
|||
if vercodes[appid] and vercode not in vercodes[appid]:
|
||||
continue
|
||||
|
||||
processed.add(appid)
|
||||
|
||||
try:
|
||||
|
||||
logging.info("Processing {apkfilename}".format(apkfilename=apkfilename))
|
||||
|
|
@ -236,6 +239,12 @@ def main():
|
|||
logging.info("...NOT verified - {0}".format(e))
|
||||
notverified += 1
|
||||
|
||||
for appid in options.appid:
|
||||
package = appid.split(":")[0]
|
||||
if package not in processed:
|
||||
logging.critical(_("No APK for package: %s") % package)
|
||||
notverified += 1
|
||||
|
||||
if verified > 0:
|
||||
logging.info("{0} successfully verified".format(verified))
|
||||
if notverified > 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue