chiark / gitweb /
remove gradle-wrapper.jar during scan
authorMarcus Hoffmann <bubuiic@aol.com>
Sun, 3 Sep 2017 23:00:12 +0000 (01:00 +0200)
committerMarcus Hoffmann <bubuiic@aol.com>
Mon, 11 Sep 2017 15:05:21 +0000 (17:05 +0200)
We make sure to not use the gradle wrapper anyway so this should have no
impact.

fdroidserver/scanner.py

index f768e6788a98d6f9a1cdc5d89f512df88d3a3ef4..e8b2945152da3435b798eb209c24742bca4cba42 100644 (file)
@@ -198,7 +198,10 @@ def scan_source(build_dir, build):
             elif ext == 'jar':
                 for name in suspects_found(curfile):
                     count += handleproblem('usual supect \'%s\'' % name, path_in_build_dir, filepath)
-                warnproblem('JAR file', path_in_build_dir)
+                if curfile == 'gradle-wrapper.jar':
+                    removeproblem('gradle-wrapper.jar', path_in_build_dir, filepath)
+                else:
+                    warnproblem('JAR file', path_in_build_dir)
 
             elif ext == 'aar':
                 warnproblem('AAR file', path_in_build_dir)