change context when reset cache in metaconfig

This commit is contained in:
Emmanuel Garette 2019-02-06 16:25:32 +01:00
parent 0b703b40b2
commit 08bae1d131
1 changed files with 9 additions and 2 deletions

View File

@ -809,9 +809,16 @@ class KernelGroupConfig(_CommonConfig):
resetted_opts = []
if isinstance(self, KernelMixConfig):
super().cfgimpl_reset_cache(option_bag,
resetted_opts=copy(resetted_opts))
resetted_opts=copy(resetted_opts))
for child in self._impl_children:
child.cfgimpl_reset_cache(option_bag,
if option_bag is not None:
coption_bag = option_bag.copy()
cconfig_bag = coption_bag.config_bag.copy()
cconfig_bag.context = child
coption_bag.config_bag = cconfig_bag
else:
coption_bag = None
child.cfgimpl_reset_cache(coption_bag,
resetted_opts=copy(resetted_opts))
def set_value(self,