summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-11 16:13:56 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-11 16:15:02 +0100
commite7ff49508282c4395fa6ee9f5026142ca7cf0dd8 (patch)
tree6939c773ecd665112e427d2f92ba6f9546bc37e3 /kconfiglib.py
parent8a85f36a8478b3b427198e72021a2cdc020b642f (diff)
Revert "Only invalidate if the user value actually changes.".
This will break choices under certain circumstances.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py18
1 files changed, 7 insertions, 11 deletions
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