summaryrefslogtreecommitdiff
path: root/src/buildstream/sandbox/sandbox.py
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2020-04-25 08:32:45 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2020-04-25 08:32:45 +0000
commit1f3752804419849aa196ac72e47396910e86376c (patch)
tree3da73b6a2e6f68c4151eea84a6a98c8be7b9b7a0 /src/buildstream/sandbox/sandbox.py
parent0307e55dcf0ae7155fa9d9d08a847957f0877545 (diff)
parent67ea61f5be51db24c2366167cb372d817e1ab6ff (diff)
downloadbuildstream-1f3752804419849aa196ac72e47396910e86376c.tar.gz
Merge branch 'juerg/shell-sysroot' into 'master'
Remove bst shell --sysroot See merge request BuildStream/buildstream!1882
Diffstat (limited to 'src/buildstream/sandbox/sandbox.py')
-rw-r--r--src/buildstream/sandbox/sandbox.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/buildstream/sandbox/sandbox.py b/src/buildstream/sandbox/sandbox.py
index bba051704..0a09788f4 100644
--- a/src/buildstream/sandbox/sandbox.py
+++ b/src/buildstream/sandbox/sandbox.py
@@ -139,21 +139,14 @@ class Sandbox:
self.__config = kwargs["config"]
self.__stdout = kwargs["stdout"]
self.__stderr = kwargs["stderr"]
- self.__bare_directory = kwargs["bare_directory"]
# Setup the directories. Root and output_directory should be
# available to subclasses, hence being single-underscore. The
# others are private to this class.
- # If the directory is bare, it probably doesn't need scratch
- if self.__bare_directory:
- self._root = directory
- self.__scratch = None
- os.makedirs(self._root, exist_ok=True)
- else:
- self._root = os.path.join(directory, "root")
- self.__scratch = os.path.join(directory, "scratch")
- for directory_ in [self._root, self.__scratch]:
- os.makedirs(directory_, exist_ok=True)
+ self._root = os.path.join(directory, "root")
+ self.__scratch = os.path.join(directory, "scratch")
+ for directory_ in [self._root, self.__scratch]:
+ os.makedirs(directory_, exist_ok=True)
self._output_directory = None # type: Optional[str]
self._build_directory = None
@@ -529,7 +522,6 @@ class Sandbox:
# Returns:
# (str): The sandbox scratch directory
def _get_scratch_directory(self):
- assert not self.__bare_directory, "Scratch is not going to work with bare directories"
return self.__scratch
# _get_output()