X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=fdroidserver%2Fscanner.py;h=0b622bcdbc208fd0b87585112fc11a6e58804469;hb=53ce81179c2edbad306e3a0a6f7569430555e168;hp=446091dc38b857e371d42d08be3ba7b2f8d66f53;hpb=d95e009c3f8ddfe9579084c92ba315ebb67ae6e7;p=fdroidserver.git diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index 446091dc..0b622bcd 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -199,10 +199,13 @@ 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: + 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):