summaryrefslogtreecommitdiff
path: root/src/buildstream/_cas/cascache.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_cas/cascache.py')
-rw-r--r--src/buildstream/_cas/cascache.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py
index b875eecdd..b80460abf 100644
--- a/src/buildstream/_cas/cascache.py
+++ b/src/buildstream/_cas/cascache.py
@@ -543,8 +543,7 @@ class CASCache:
tree = remote_execution_pb2.Tree()
- objpath = self.objpath(digest)
- with open(objpath, "rb") as f:
+ with self.open(digest, "rb") as f:
tree.ParseFromString(f.read())
dirbuffers = [tree.root.SerializeToString()]