msubprojects: do not follow symlinks when purging

Fixes #8891
pull/9031/head
Andrei Alexeyev 3 years ago committed by Jussi Pakkanen
parent 7eb4c23156
commit 5d88c45861
  1. 3
      mesonbuild/msubprojects.py

@ -430,7 +430,8 @@ class Runner:
except FileNotFoundError:
pass
subproject_source_dir = Path(self.repo_dir).resolve()
# NOTE: Do not use .resolve() here; the subproject directory may be a symlink
subproject_source_dir = Path(self.repo_dir)
# Don't follow symlink. This is covered by the next if statement, but why
# not be doubly sure.

Loading…
Cancel
Save