check for invalid appids passed to commands

This commit is contained in:
Felix C. Stegerman 2021-04-03 01:34:38 +02:00
parent 380f3b2e9f
commit 3e557a1a8a
No known key found for this signature in database
GPG key ID: B218FF2C27FC6CC6
5 changed files with 36 additions and 13 deletions

View file

@ -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: