mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
scanner: avoid checking if usual files are binary
This commit is contained in:
parent
055759cf76
commit
15e14075cf
1 changed files with 5 additions and 0 deletions
|
@ -155,6 +155,11 @@ def scan_source(build_dir, root_dir, thisbuild):
|
|||
count += handleproblem('usual suspect at line %d' % i, fd, fp)
|
||||
break
|
||||
|
||||
# These files are often found - avoid checking if they are binary
|
||||
# to speed up the scanner
|
||||
elif ext in ['xml', 'md', 'txt', 'html', 'sh', 'png']:
|
||||
pass
|
||||
|
||||
elif is_binary(fp):
|
||||
if is_executable(fp):
|
||||
count += handleproblem('executable binary', fd, fp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue