diff options
author | Jürg Billeter <j@bitron.ch> | 2020-03-03 15:51:02 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-03-10 15:46:04 +0000 |
commit | f78e6ee55e98c91e2cef055e232df5b955ac7323 (patch) | |
tree | 519b1751a03410cd942cbec4e0aaa5fff76a5984 /src/buildstream/buildelement.py | |
parent | dd1a4554417a0e1b4f57827a0af1918ec05323ba (diff) | |
download | buildstream-f78e6ee55e98c91e2cef055e232df5b955ac7323.tar.gz |
_filebaseddirectory.py: Improve _exists() method
Use similar implementation as in `CasBasedDirectory`. This fixes
following symlinks to avoid the host filesystem and adds support for
`follow_symlinks=False`.
Diffstat (limited to 'src/buildstream/buildelement.py')
-rw-r--r-- | src/buildstream/buildelement.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/buildelement.py b/src/buildstream/buildelement.py index aeafbcdda..acb079a56 100644 --- a/src/buildstream/buildelement.py +++ b/src/buildstream/buildelement.py @@ -280,7 +280,7 @@ class BuildElement(Element): buildroot = self.get_variable("build-root") buildroot_vdir = vdir.descend(*buildroot.lstrip(os.sep).split(os.sep)) - if buildroot_vdir._exists(marker_filename, follow_symlinks=True): + if buildroot_vdir._exists(marker_filename): # Already prepared return |