summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-10 13:48:39 +0100
committerTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-13 17:17:52 +0100
commit435b8d5db56388770845ab839bcb425e81eb8eb2 (patch)
tree3235d68cb3fb437bc645b698583f344832bd7317
parentb4d7fb45e5c6357a72e4b9f5f57e8096b5d0d2a4 (diff)
downloadbuildstream-435b8d5db56388770845ab839bcb425e81eb8eb2.tar.gz
cascache: fix oversight
-rw-r--r--buildstream/_artifactcache/cascache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index 2f14c3d86..1bbf454d4 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -772,7 +772,7 @@ class CASCache(ArtifactCache):
directory.ParseFromString(f.read())
for filenode in directory.files:
- fileobjpath = self.objpath(tree)
+ fileobjpath = self.objpath(filenode.digest)
if os.path.exists(fileobjpath):
# already in local cache
continue