summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_artifactcache.py')
-rw-r--r--buildstream/_artifactcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_artifactcache.py b/buildstream/_artifactcache.py
index 1c88dfd12..3060ee952 100644
--- a/buildstream/_artifactcache.py
+++ b/buildstream/_artifactcache.py
@@ -104,7 +104,7 @@ class ArtifactCache():
_, rev = self.repo.resolve_rev(ref, False)
os.makedirs(self.extractdir, exist_ok=True)
- with tempfile.TemporaryDirectory(None, 'tmp', self.extractdir) as tmpdir:
+ with tempfile.TemporaryDirectory(prefix='tmp', dir=self.extractdir) as tmpdir:
checkoutdir = os.path.join(tmpdir, ref)
os.makedirs(os.path.dirname(checkoutdir))