diff options
author | Jürg Billeter <j@bitron.ch> | 2020-01-16 12:11:15 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-02-03 17:10:32 +0000 |
commit | 5cc6dfc510e60a27ee3f462cb2267f96986b5bf2 (patch) | |
tree | 287c4db9a1fe51b24e2a1afc3a21b936c327ba94 | |
parent | db6207f49419d272be28527e3c5c9b1ef5c2ecdd (diff) | |
download | buildstream-5cc6dfc510e60a27ee3f462cb2267f96986b5bf2.tar.gz |
_sandboxreapi.py: Do not create directories for host-files
This breaks if host-files is used to bind mount regular files.
-rw-r--r-- | src/buildstream/sandbox/_sandboxreapi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/buildstream/sandbox/_sandboxreapi.py b/src/buildstream/sandbox/_sandboxreapi.py index 2430fd372..f1cd477d6 100644 --- a/src/buildstream/sandbox/_sandboxreapi.py +++ b/src/buildstream/sandbox/_sandboxreapi.py @@ -59,8 +59,11 @@ class SandboxREAPI(Sandbox): # Create directories for all marked directories. This emulates # some of the behaviour of other sandboxes, which create these # to use as mount points. + mount_sources = self._get_mount_sources() for mark in self._get_marked_directories(): directory = mark["directory"] + if directory in mount_sources: + continue # Create each marked directory vdir.descend(*directory.split(os.path.sep), create=True) |