mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Merge branch 'revert_fileextension' into 'master'
Fix detection of binary files without extension See merge request fdroid/fdroidserver!1085
This commit is contained in:
commit
a4a6a02d4b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue