mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +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)
|
||||
elif mime == 'application/jar' and has_extension(fp, 'apk'):
|
||||
removeproblem('APK file', fd, fp)
|
||||
elif mime == 'application/jar' or (
|
||||
mime == 'application/zip' and has_extension(fp, 'jar')):
|
||||
elif has_extension(fp, 'jar') and mime in [
|
||||
'application/zip',
|
||||
'application/java-archive',
|
||||
'binary',
|
||||
]:
|
||||
warnproblem('JAR file', fd, fp)
|
||||
elif mime == 'application/zip':
|
||||
warnproblem('ZIP file', fd, fp)
|
||||
|
Loading…
Reference in New Issue
Block a user