From ad527d48a17b3a4fca553c372ba847e94515b94e Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Wed, 27 Jul 2011 08:41:17 +0000 Subject: [PATCH] Enhance the auto-hinter to support non-circular dependencies Signed-off-by: Adam D. Barratt --- britney.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/britney.py b/britney.py index 912d50f..d7662bc 100755 --- a/britney.py +++ b/britney.py @@ -2816,8 +2816,12 @@ class Britney: if e in self.sources['testing'] and self.sources['testing'][e][VERSION] == excuse.ver[1] or \ len(excuse.deps) == 0: continue + hint = find_related(e, {}) + if isinstance(hint, dict) and len(hint) and hint not in cache: + self.do_hint("easy", "autohinter", hint.items()) + cache.append(hint) hint = find_related(e, {}, True) - if hint and e in hint and hint not in cache: + if isinstance(hint, dict) and e in hint and hint not in cache: self.do_hint("easy", "autohinter", hint.items()) cache.append(hint)