diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-08-10 13:48:39 +0100 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-09-14 16:32:21 +0100 |
commit | 510ccbfd407d52c68ce3c040edf577e8eff7e476 (patch) | |
tree | 9f9445fd44b5c84dfdc66a911b71fdd14514b87f | |
parent | 924cdc75a829a433d327a462ab819554f979e9ea (diff) | |
download | buildstream-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.py | 2 |
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 |