mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Fix detection of binary files without extension
Regression of fb61168c
.
This commit is contained in:
parent
31d3ac3d79
commit
8fb37445f2
@ -398,7 +398,7 @@ def scan_source(build_dir, build=metadata.Build()):
|
|||||||
if not any(r.match(url) for r in allowed_repos):
|
if not any(r.match(url) for r in allowed_repos):
|
||||||
count += handleproblem('unknown maven repo \'%s\'' % url, path_in_build_dir, filepath)
|
count += handleproblem('unknown maven repo \'%s\'' % url, path_in_build_dir, filepath)
|
||||||
|
|
||||||
elif curfile.endswith(('.', '.bin', '.out', '.exe')):
|
elif os.path.splitext(path_in_build_dir)[1] in ['', '.bin', '.out', '.exe']:
|
||||||
if is_binary(filepath):
|
if is_binary(filepath):
|
||||||
count += handleproblem('binary', path_in_build_dir, filepath)
|
count += handleproblem('binary', path_in_build_dir, filepath)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user