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:
parent
f337ef95a9
commit
9482ddfbe3
@ -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(
|
||||
|
0
tests/source-files/lockfile.test/rust/subdir/Cargo.lock
generated
Normal file
0
tests/source-files/lockfile.test/rust/subdir/Cargo.lock
generated
Normal file
Loading…
Reference in New Issue
Block a user