From 8fb37445f29a670242d79b8665cc1a67ac3cdfc4 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Wed, 2 Mar 2022 10:21:20 +0100 Subject: [PATCH] Fix detection of binary files without extension Regression of fb61168c. --- fdroidserver/scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index 45ed3918..34772a6d 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -398,7 +398,7 @@ def scan_source(build_dir, build=metadata.Build()): if not any(r.match(url) for r in allowed_repos): 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): count += handleproblem('binary', path_in_build_dir, filepath)