chiark / gitweb /
scanner: promote jar and aar files present in the repo to errors
authorMarcus Hoffmann <bubuiic@aol.com>
Sun, 3 Sep 2017 23:03:26 +0000 (01:03 +0200)
committerMarcus Hoffmann <bubuiic@aol.com>
Mon, 11 Sep 2017 15:05:24 +0000 (17:05 +0200)
This makes sure we we don't include any prebuilt code in the build process.

fdroidserver/scanner.py

index e8b2945152da3435b798eb209c24742bca4cba42..de58b9d41f9c9be5f908a5e5f968aae70acf6615 100644 (file)
@@ -201,10 +201,10 @@ def scan_source(build_dir, build):
                 if curfile == 'gradle-wrapper.jar':
                     removeproblem('gradle-wrapper.jar', path_in_build_dir, filepath)
                 else:
-                    warnproblem('JAR file', path_in_build_dir)
+                    count += handleproblem('JAR file', path_in_build_dir, filepath)
 
             elif ext == 'aar':
-                warnproblem('AAR file', path_in_build_dir)
+                count += handleproblem('AAR file', path_in_build_dir, filepath)
 
             elif ext == 'java':
                 if not os.path.isfile(filepath):