summaryrefslogtreecommitdiff
path: root/src/buildstream/_elementsourcescache.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_elementsourcescache.py')
-rw-r--r--src/buildstream/_elementsourcescache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_elementsourcescache.py b/src/buildstream/_elementsourcescache.py
index 9a617b8d6..194f3fd4a 100644
--- a/src/buildstream/_elementsourcescache.py
+++ b/src/buildstream/_elementsourcescache.py
@@ -299,7 +299,7 @@ class ElementSourcesCache(AssetCache):
# Fetch and parse source proto
self.cas.fetch_blobs(remote, [source_digest])
source = source_pb2.Source()
- with open(self.cas.objpath(source_digest), "rb") as f:
+ with self.cas.open(source_digest, "rb") as f:
source.ParseFromString(f.read())
# Write the source proto to cache