summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-10 13:45:03 +0100
committerTiago Gomes <tiago.gomes@codethink.co.uk>2018-08-13 17:17:52 +0100
commitb4d7fb45e5c6357a72e4b9f5f57e8096b5d0d2a4 (patch)
treee12860a0893f8292d66206839bdb0da2f1371295
parent56f2b2e4f733f9c604c072a60bc53cac749f3f5e (diff)
downloadbuildstream-b4d7fb45e5c6357a72e4b9f5f57e8096b5d0d2a4.tar.gz
cascache: rename _fetch_directory to _fetch_tree
For symmetry with _create_tree.
-rw-r--r--buildstream/_artifactcache/cascache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py
index 4fea98626..2f14c3d86 100644
--- a/buildstream/_artifactcache/cascache.py
+++ b/buildstream/_artifactcache/cascache.py
@@ -231,7 +231,7 @@ class CASCache(ArtifactCache):
tree.hash = response.digest.hash
tree.size_bytes = response.digest.size_bytes
- self._fetch_directory(remote, tree)
+ self._fetch_tree(remote, tree)
self.set_ref(ref, tree)
@@ -757,7 +757,7 @@ class CASCache(ArtifactCache):
out.flush()
assert digest.size_bytes == os.fstat(out.fileno()).st_size
- def _fetch_directory(self, remote, tree):
+ def _fetch_tree(self, remote, tree):
objpath = self.objpath(tree)
if os.path.exists(objpath):
# already in local cache
@@ -784,7 +784,7 @@ class CASCache(ArtifactCache):
assert digest.hash == filenode.digest.hash
for dirnode in directory.directories:
- self._fetch_directory(remote, dirnode.digest)
+ self._fetch_tree(remote, dirnode.digest)
# place directory blob only in final location when we've downloaded
# all referenced blobs to avoid dangling references in the repository