Merge branch 'invalid-apk-fix' into 'master'

Fix bug when scanning invalid APKs and add a test for it

See merge request !246
This commit is contained in:
Hans-Christoph Steiner 2017-04-03 17:38:51 +00:00
commit d6310ed52c
2 changed files with 20 additions and 1 deletions

View file

@ -793,7 +793,7 @@ def scan_apk(apkcache, apkfilename, repodir, knownapks, use_date_from_apk):
logging.error("Could not find {0} to remove it".format(apkfile))
else:
logging.error("Failed to get apk information, skipping " + apkfile)
return True
return True, None, False
for line in p.output.splitlines():
if line.startswith("package:"):
try: