From b589595e45504abd85e1bcdf71a3107eb2104538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 22 Sep 2015 13:03:42 -0700 Subject: [PATCH] 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. --- fdroidserver/scanner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fdroidserver/scanner.py b/fdroidserver/scanner.py index c26438ad..7f6d7d91 100644 --- a/fdroidserver/scanner.py +++ b/fdroidserver/scanner.py @@ -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':