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,9 +816,15 @@ def scan_source(build_dir, build=metadata.Build(), json_per_build=None):
) )
elif curfile in DEPFILE: elif curfile in DEPFILE:
for lockfile in DEPFILE[curfile]: d = root
if os.path.isfile(os.path.join(root, lockfile)): while d.startswith(build_dir):
break for lockfile in DEPFILE[curfile]:
if os.path.isfile(os.path.join(d, lockfile)):
break
else:
d = os.path.dirname(d)
continue
break
else: else:
count += handleproblem( count += handleproblem(
_('dependency file without lock'), _('dependency file without lock'),

View File