diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-08-10 13:48:39 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-09-30 08:33:34 +0200 |
commit | 34e81ae1835cb8732798e7d4eab4d470e96fad13 (patch) | |
tree | b541f7f21e915bc537522287c70c8844df243651 /buildstream/_artifactcache | |
parent | 621bd236007d941e79f5227337b04b08c534105b (diff) | |
download | buildstream-34e81ae1835cb8732798e7d4eab4d470e96fad13.tar.gz |
artifactcache: fix oversight
We want to check if some file is already cached here, not the parent
directory.
Diffstat (limited to 'buildstream/_artifactcache')
-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 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 |