1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

Merge branch 'error_on_jars' into 'master'

RFC: Error on jars

See merge request fdroid/fdroidserver!325
This commit is contained in:
Hans-Christoph Steiner 2017-10-12 11:46:59 +00:00
commit 53ce81179c

View File

@ -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):