From 15e14075cfa497a312a824911277004c4746f58e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Sun, 13 Sep 2015 22:22:03 -0700 Subject: [PATCH] scanner: avoid checking if usual files are binary --- fdroidserver/scanner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index 7f7c6aa9..04d846d5 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -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) -- 2.30.2