diff options
author | Jürg Billeter <j@bitron.ch> | 2019-04-01 11:40:03 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-04-12 11:17:33 +0200 |
commit | 5780868547efc0db143cb54cbe97d646259331a4 (patch) | |
tree | fefe37adf435032f66778ebce16c0a1728610bb9 | |
parent | 403b41a598160b374219a4c0fbc75f08a1bbb37a (diff) | |
download | buildstream-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.py | 5 |
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) |