summaryrefslogtreecommitdiff
path: root/buildstream
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2018-07-17 19:31:32 +0200
committerJürg Billeter <j@bitron.ch>2018-07-17 19:31:32 +0200
commit4c09b686688a50fc36fc2fe9659c9146ba31fe5c (patch)
treedf0d23b3280b59e9c8efe82c65e5d41038439711 /buildstream
parent87c103d840b0e672c34510a93a51d40e21130478 (diff)
downloadbuildstream-4c09b686688a50fc36fc2fe9659c9146ba31fe5c.tar.gz
_artifactcache/cascache.py: Fix prune()
_reachable_refs_dir() failed to add directory digests to the set of reachable objects.
Diffstat (limited to 'buildstream')
-rw-r--r--buildstream/_artifactcache/cascache.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index 4f61edd7d..f20250766 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -660,6 +660,8 @@ class CASCache(ArtifactCache):
if tree.hash in reachable:
return
+ reachable.add(tree.hash)
+
directory = remote_execution_pb2.Directory()
with open(self.objpath(tree), 'rb') as f: