From 9b633fb8278faa301f4a2040a480129274a12606 Mon Sep 17 00:00:00 2001 From: linsui <2873532-linsui@users.noreply.gitlab.com> Date: Wed, 4 Sep 2024 23:51:28 +0800 Subject: [PATCH] scanner: fix build_dir type --- fdroidserver/scanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index cf586f45..4a8065d5 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -817,7 +817,7 @@ def scan_source(build_dir, build=metadata.Build(), json_per_build=None): elif curfile in DEPFILE: d = root - while d.startswith(build_dir): + while d.startswith(str(build_dir)): for lockfile in DEPFILE[curfile]: if os.path.isfile(os.path.join(d, lockfile)): break