chiark / gitweb /
scanner: promote jar and aar files present in the repo to errors
[fdroidserver.git] / 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):