summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-08 21:29:17 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-08 21:29:17 +0100
commit6fa2ef815b06f56de0533c521643c293f28b38ca (patch)
tree93753f38719bed68f8ac18b1cb098926614b000f
parent41c039187b27989fb6bd5f4ba0584ae14fcc0345 (diff)
Avoid getting 'self' as a dependency.
Harmless but pointless.
-rw-r--r--kconfiglib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 1000be9..4a4e187 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2968,6 +2968,9 @@ class Symbol(Item, _HasVisibility):
rec(s, True)
rec(self)
+ # Using cached deps from other symbols in the same choice might mean we
+ # get ourself in the result (harmless but unnecessary)
+ res.discard(self)
self.cached_deps = list(res)
return self.cached_deps