chiark / gitweb /
scanner: ignore .DS_Store files
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 10 Nov 2015 20:49:46 +0000 (21:49 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 10 Nov 2015 20:49:46 +0000 (21:49 +0100)
They are binary and sometimes executable, so they trigger false
positives.

fdroidserver/scanner.py

index 1f4ac818343e34caa71c634c72e273725526f0da..092c23ec4db12c880580426a5b8ad9c5cf7964e7 100644 (file)
@@ -153,6 +153,9 @@ def scan_source(build_dir, root_dir, thisbuild):
 
         for curfile in f:
 
+            if curfile in ['.DS_Store']:
+                continue
+
             # Path (relative) to the file
             fp = os.path.join(r, curfile)