mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
Properly identify jar files
This commit is contained in:
parent
93987eac17
commit
9014206b76
@ -1221,8 +1221,11 @@ def scan_source(build_dir, root_dir, thisbuild):
|
|||||||
handleproblem('Java compiled class', fd, fp)
|
handleproblem('Java compiled class', fd, fp)
|
||||||
elif mime == 'application/jar' and has_extension(fp, 'apk'):
|
elif mime == 'application/jar' and has_extension(fp, 'apk'):
|
||||||
removeproblem('APK file', fd, fp)
|
removeproblem('APK file', fd, fp)
|
||||||
elif mime == 'application/jar' or (
|
elif has_extension(fp, 'jar') and mime in [
|
||||||
mime == 'application/zip' and has_extension(fp, 'jar')):
|
'application/zip',
|
||||||
|
'application/java-archive',
|
||||||
|
'binary',
|
||||||
|
]:
|
||||||
warnproblem('JAR file', fd, fp)
|
warnproblem('JAR file', fd, fp)
|
||||||
elif mime == 'application/zip':
|
elif mime == 'application/zip':
|
||||||
warnproblem('ZIP file', fd, fp)
|
warnproblem('ZIP file', fd, fp)
|
||||||
|
Loading…
Reference in New Issue
Block a user