mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Some JARs have zip mimetype
This commit is contained in:
parent
3f485e509f
commit
a1d85e32f1
1 changed files with 2 additions and 1 deletions
|
@ -1211,7 +1211,8 @@ 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':
|
||||
elif mime == 'application/jar' or (
|
||||
mime == 'application/zip' and has_extension(fp, 'jar')):
|
||||
warnproblem('JAR file', fd, fp)
|
||||
elif mime == 'application/zip':
|
||||
warnproblem('ZIP file', fd, fp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue