mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-27 00:42:03 -05: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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user