1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-21 04:10:37 +02:00

scanner: support workspace for lock files

This commit is contained in:
linsui 2024-09-01 01:27:26 +08:00
parent f337ef95a9
commit 9482ddfbe3
10 changed files with 9 additions and 3 deletions

View File

@ -816,8 +816,14 @@ def scan_source(build_dir, build=metadata.Build(), json_per_build=None):
)
elif curfile in DEPFILE:
d = root
while d.startswith(build_dir):
for lockfile in DEPFILE[curfile]:
if os.path.isfile(os.path.join(root, lockfile)):
if os.path.isfile(os.path.join(d, lockfile)):
break
else:
d = os.path.dirname(d)
continue
break
else:
count += handleproblem(

View File