1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01: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:
Daniel Martí 2015-09-22 13:03:42 -07:00
parent b9b5b5d1b0
commit b589595e45

View File

@ -140,8 +140,11 @@ def scan_source(build_dir, root_dir, thisbuild):
# Path (relative) to the file # Path (relative) to the file
fp = os.path.join(r, curfile) 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) ext = common.get_extension(fd)
if ext == 'so': if ext == 'so':