From 6fa2ef815b06f56de0533c521643c293f28b38ca Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 8 Dec 2012 21:29:17 +0100 Subject: Avoid getting 'self' as a dependency. Harmless but pointless. --- kconfiglib.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kconfiglib.py') 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 -- cgit v1.2.3