summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-04-01 11:40:03 +0200
committerJürg Billeter <j@bitron.ch>2019-04-12 11:17:33 +0200
commit5780868547efc0db143cb54cbe97d646259331a4 (patch)
treefefe37adf435032f66778ebce16c0a1728610bb9
parent403b41a598160b374219a4c0fbc75f08a1bbb37a (diff)
downloadbuildstream-5780868547efc0db143cb54cbe97d646259331a4.tar.gz
cascache.py: Do not fetch files in _fetch_tree()
Download them separately as they are not always required.
-rw-r--r--buildstream/_cas/cascache.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/buildstream/_cas/cascache.py b/buildstream/_cas/cascache.py
index 3a3662aa8..8c64e76d2 100644
--- a/buildstream/_cas/cascache.py
+++ b/buildstream/_cas/cascache.py
@@ -1047,11 +1047,6 @@ class CASCache():
tree.children.extend([tree.root])
for directory in tree.children:
- for filenode in directory.files:
- self._ensure_blob(remote, filenode.digest)
-
- # place directory blob only in final location when we've downloaded
- # all referenced blobs to avoid dangling references in the repository
dirbuffer = directory.SerializeToString()
dirdigest = self.add_object(buffer=dirbuffer)
assert dirdigest.size_bytes == len(dirbuffer)