summaryrefslogtreecommitdiff
path: root/buildstream/_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_stream.py')
-rw-r--r--buildstream/_stream.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py
index cceb3d3a5..f3ef5b3da 100644
--- a/buildstream/_stream.py
+++ b/buildstream/_stream.py
@@ -703,6 +703,7 @@ class Stream():
# Create a temporary directory to build the source tree in
builddir = self._context.builddir
+ os.makedirs(builddir, exist_ok=True)
prefix = "{}-".format(target.normal_name)
with TemporaryDirectory(prefix=prefix, dir=builddir) as tempdir:
@@ -1088,6 +1089,7 @@ class Stream():
for element in elements:
source_dir = os.path.join(directory, "source")
element_source_dir = os.path.join(source_dir, element.normal_name)
+ os.makedirs(element_source_dir)
element._stage_sources_at(element_source_dir)