From e7ff49508282c4395fa6ee9f5026142ca7cf0dd8 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 11 Dec 2012 16:13:56 +0100 Subject: Revert "Only invalidate if the user value actually changes.". This will break choices under certain circumstances. --- kconfiglib.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'kconfiglib.py') diff --git a/kconfiglib.py b/kconfiglib.py index 1fe3929..97e6358 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -2444,20 +2444,16 @@ class Symbol(Item, _HasVisibility): things will just work with regards to dependencies. v -- The user value to give to the symbol.""" - old_user_val = self.user_val - self._set_user_value_no_invalidate(v, False) - # If the user value changed, invalidate all dependent symbols - if self.user_val != old_user_val: - # There might be something more efficient you could do here, but play - # it safe. - if self.name == "MODULES": - self.config._invalidate_all() - return + # There might be something more efficient you could do here, but play + # it safe. + if self.name == "MODULES": + self.config._invalidate_all() + return - self._invalidate() - self._invalidate_dependent() + self._invalidate() + self._invalidate_dependent() def unset_user_value(self): """Resets the user value of the symbol, as if the symbol had never -- cgit v1.2.3