summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-10 13:48:39 +0100
committerJürg Billeter <j@bitron.ch>2018-09-30 08:33:34 +0200
commit34e81ae1835cb8732798e7d4eab4d470e96fad13 (patch)
treeb541f7f21e915bc537522287c70c8844df243651
parent621bd236007d941e79f5227337b04b08c534105b (diff)
downloadbuildstream-34e81ae1835cb8732798e7d4eab4d470e96fad13.tar.gz
artifactcache: fix oversight
We want to check if some file is already cached here, not the parent directory.
-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 b6b1d436d..a7b92d6e2 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -803,7 +803,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