1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Fix counting of scanner problems

This commit is contained in:
Daniel Martí 2014-04-12 00:14:05 +02:00
parent 81e6fb8eb5
commit 67054c7c6f

View File

@ -1276,9 +1276,9 @@ def scan_source(build_dir, root_dir, thisbuild):
elif mime == 'application/x-archive':
count += handleproblem('static library', fd, fp)
elif mime == 'application/x-executable':
handleproblem('binary executable', fd, fp)
count += handleproblem('binary executable', fd, fp)
elif mime == 'application/x-java-applet':
handleproblem('Java compiled class', fd, fp)
count += handleproblem('Java compiled class', fd, fp)
elif mime == 'application/jar' and has_extension(fp, 'apk'):
removeproblem('APK file', fd, fp)
elif has_extension(fp, 'jar') and mime in [