mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
Fix bug when scanning invalid APKs and add a test for it
This commit is contained in:
parent
159ca824b7
commit
8f6fa2955d
2 changed files with 20 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue