summaryrefslogtreecommitdiff
path: root/buildstream/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins')
-rw-r--r--buildstream/plugins/sources/ostree.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/plugins/sources/ostree.py b/buildstream/plugins/sources/ostree.py
index ab4f600b1..c0076cac2 100644
--- a/buildstream/plugins/sources/ostree.py
+++ b/buildstream/plugins/sources/ostree.py
@@ -125,9 +125,7 @@ class OSTreeSource(Source):
self.ensure()
# Checkout self.ref into the specified directory
- os.makedirs(self.get_mirror_directory(), exist_ok=True)
- with tempfile.TemporaryDirectory(prefix='tmp', dir=self.get_mirror_directory()) as tmpdir:
-
+ with self.tempdir() as tmpdir:
checkoutdir = os.path.join(tmpdir, 'checkout')
with self.timed_activity("Staging ref: {} from origin: {}"