mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-24 08:51:31 +00:00
Enhance the auto-hinter to support non-circular dependencies
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
db6ccbf438
commit
ad527d48a1
@ -2816,8 +2816,12 @@ class Britney:
|
|||||||
if e in self.sources['testing'] and self.sources['testing'][e][VERSION] == excuse.ver[1] or \
|
if e in self.sources['testing'] and self.sources['testing'][e][VERSION] == excuse.ver[1] or \
|
||||||
len(excuse.deps) == 0:
|
len(excuse.deps) == 0:
|
||||||
continue
|
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)
|
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())
|
self.do_hint("easy", "autohinter", hint.items())
|
||||||
cache.append(hint)
|
cache.append(hint)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user