diff options
Diffstat (limited to 'buildstream/_cas/cascache.py')
-rw-r--r-- | buildstream/_cas/cascache.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/buildstream/_cas/cascache.py b/buildstream/_cas/cascache.py index c739c7ee1..eae3ef04d 100644 --- a/buildstream/_cas/cascache.py +++ b/buildstream/_cas/cascache.py @@ -1383,7 +1383,11 @@ class CASQuota: # get required refs refs = self.cas.list_refs() - required_refs = set(itertools.chain.from_iterable(self._ref_callbacks)) + required_refs = set( + required + for callback in self._ref_callbacks + for required in callback() + ) # Start off with an announcement with as much info as possible volume_size, volume_avail = self._get_cache_volume_size() |