mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
scanner: skip symlinks to avoid issues
If they resolve to a missing file, we don't care about them. If they resolve to an existing file, we'll scan that file anyway.
This commit is contained in:
parent
b9b5b5d1b0
commit
b589595e45
@ -140,8 +140,11 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||
|
||||
# Path (relative) to the file
|
||||
fp = os.path.join(r, curfile)
|
||||
fd = fp[len(build_dir) + 1:]
|
||||
|
||||
if os.path.islink(fp):
|
||||
continue
|
||||
|
||||
fd = fp[len(build_dir) + 1:]
|
||||
ext = common.get_extension(fd)
|
||||
|
||||
if ext == 'so':
|
||||
|
Loading…
Reference in New Issue
Block a user