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

@ -811,7 +811,14 @@ class KernelGroupConfig(_CommonConfig):
super().cfgimpl_reset_cache(option_bag, super().cfgimpl_reset_cache(option_bag,
resetted_opts=copy(resetted_opts)) resetted_opts=copy(resetted_opts))
for child in self._impl_children: 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)) resetted_opts=copy(resetted_opts))
def set_value(self, def set_value(self,