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

This commit is contained in:
Torsten Grote 2017-04-03 13:07:49 -03:00
parent 159ca824b7
commit 8f6fa2955d
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF
2 changed files with 20 additions and 1 deletions

View file

@ -819,7 +819,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: