summaryrefslogtreecommitdiff
path: root/src/buildstream/_cas
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-10-28 09:19:05 +0100
committerJürg Billeter <j@bitron.ch>2020-12-09 14:51:06 +0000
commitc836b7be6feaa0b9f86ab8c0cb5b913b0d8ed0e0 (patch)
treee4c7679ded79f80c478a13a7a878ef00a772efe4 /src/buildstream/_cas
parenta501b0e60f15779be0abb7b074dd6e4944b1a23a (diff)
downloadbuildstream-c836b7be6feaa0b9f86ab8c0cb5b913b0d8ed0e0.tar.gz
Use CASCache.open()juerg/cas
Diffstat (limited to 'src/buildstream/_cas')
-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()]