Merge branch 'wasm' into 'master'

scanner: disallow wasm file

See merge request fdroid/fdroidserver!1562
This commit is contained in:
Hans-Christoph Steiner 2024-11-20 12:49:15 +00:00
commit a8e31796d8

View file

@ -994,6 +994,13 @@ def scan_source(build_dir, build=metadata.Build(), json_per_build=None):
count += handleproblem(
_('Java JAR file'), path_in_build_dir, filepath, json_per_build
)
elif curfile.endswith('.wasm'):
count += handleproblem(
_('WebAssembly binary file'),
path_in_build_dir,
filepath,
json_per_build,
)
elif curfile.endswith('.java'):
if not os.path.isfile(filepath):