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-09-14 16:32:21 +0100
commit510ccbfd407d52c68ce3c040edf577e8eff7e476 (patch)
tree9f9445fd44b5c84dfdc66a911b71fdd14514b87f
parent924cdc75a829a433d327a462ab819554f979e9ea (diff)
downloadbuildstream-510ccbfd407d52c68ce3c040edf577e8eff7e476.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 78191ccf8..d673c224d 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -848,7 +848,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