summaryrefslogtreecommitdiff
path: root/buildstream/_platform/linux.py
diff options
context:
space:
mode:
authorJames Ennis <jennis18@bloomberg.net>2018-09-21 06:51:03 -0400
committerJürg Billeter <j@bitron.ch>2018-09-27 10:49:12 +0100
commita18a3cf9eca334128eb6119f32f8c5d7fe1f9776 (patch)
treecdaf741a3e1920babd32642c7627bc2c23c9de33 /buildstream/_platform/linux.py
parentfa1f4ba5987549be8b9d2b50fa8951d3e06cffbe (diff)
downloadbuildstream-mac_fixes.tar.gz
Import sandbox subclass when instantiating sandboxmac_fixes
Sandbox: Ensure that we only import the sandbox subclasses when instantiate a sandbox This patch was required due to not being able to execute `bst` on a Linux machine without Fuse or Bubblewrap available
Diffstat (limited to 'buildstream/_platform/linux.py')
-rw-r--r--buildstream/_platform/linux.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/_platform/linux.py b/buildstream/_platform/linux.py
index cae0bd75a..85bfbd852 100644
--- a/buildstream/_platform/linux.py
+++ b/buildstream/_platform/linux.py
@@ -23,7 +23,7 @@ import subprocess
from .. import _site
from .. import utils
from .._message import Message, MessageType
-from ..sandbox import SandboxBwrap, SandboxDummy
+from ..sandbox import SandboxDummy
from . import Platform
@@ -48,6 +48,7 @@ class Linux(Platform):
if not self._local_sandbox_available():
return SandboxDummy(*args, **kwargs)
else:
+ from ..sandbox._sandboxbwrap import SandboxBwrap
# Inform the bubblewrap sandbox as to whether it can use user namespaces or not
kwargs['user_ns_available'] = self._user_ns_available
kwargs['die_with_parent_available'] = self._die_with_parent_available