diff options
author | Jürg Billeter <j@bitron.ch> | 2020-10-28 08:16:07 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-12-09 14:51:06 +0000 |
commit | 0b5155e908388f018060b3b721f22ecf8a9666b9 (patch) | |
tree | 0c5ed45112b0f503f8ac9e2cc53333de1b22ca42 /src/buildstream/_sourcecache.py | |
parent | b480a2a5064330133cdd2ec7e14961d63a40c113 (diff) | |
download | buildstream-0b5155e908388f018060b3b721f22ecf8a9666b9.tar.gz |
cascache.py: Also fetch file blobs in _fetch_directory()
This eliminates code duplication in `ArtifactCache`, `SourceCache` and
`ElementSourcesCache`.
Diffstat (limited to 'src/buildstream/_sourcecache.py')
-rw-r--r-- | src/buildstream/_sourcecache.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/buildstream/_sourcecache.py b/src/buildstream/_sourcecache.py index 76c22efbd..37d990b4f 100644 --- a/src/buildstream/_sourcecache.py +++ b/src/buildstream/_sourcecache.py @@ -146,9 +146,6 @@ class SourceCache(AssetCache): # Fetch source blobs self.cas._fetch_directory(remote, source_digest) - required_blobs = self.cas.required_blobs_for_directory(source_digest) - missing_blobs = self.cas.local_missing_blobs(required_blobs) - self.cas.fetch_blobs(remote, missing_blobs) source.info("Pulled source {} <- {}".format(display_key, remote)) return True |