1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-06 11:00:13 +02:00

scanner: promote jar and aar files present in the repo to errors

This makes sure we we don't include any prebuilt code in the build process.
This commit is contained in:
Marcus Hoffmann 2017-09-04 01:03:26 +02:00
parent 15c4492625
commit 5f5d3ea896

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