mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-04 06:11:38 +00:00
auto-hinter: Prune size of valid excuses and their deps
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
43266ee091
commit
3294c99036
14
britney.py
14
britney.py
@ -2870,14 +2870,16 @@ class Britney(object):
|
|||||||
excuses relationships. If they build a circular dependency, which we already
|
excuses relationships. If they build a circular dependency, which we already
|
||||||
know as not-working with the standard do_all algorithm, try to `easy` them.
|
know as not-working with the standard do_all algorithm, try to `easy` them.
|
||||||
"""
|
"""
|
||||||
self.log("> Processing hints from the auto hinter",
|
self.log("> Processing hints from the auto hinter", type="I")
|
||||||
type="I")
|
|
||||||
|
|
||||||
# consider only excuses which are valid candidates
|
|
||||||
valid_excuses = frozenset(y.uvname for y in self.upgrade_me)
|
|
||||||
excuses = self.excuses
|
|
||||||
excuses_deps = dict((name, set(excuse.deps)) for name, excuse in excuses.items() if name in valid_excuses)
|
|
||||||
sources_t = self.sources['testing']
|
sources_t = self.sources['testing']
|
||||||
|
excuses = self.excuses
|
||||||
|
|
||||||
|
# consider only excuses which are valid candidates and still relevant.
|
||||||
|
valid_excuses = frozenset(y.uvname for y in self.upgrade_me
|
||||||
|
if y not in sources_t or sources_t[y][VERSION] != excuses[y].ver[1])
|
||||||
|
excuses_deps = {name: valid_excuses.intersection(excuse.deps)
|
||||||
|
for name, excuse in excuses.items() if name in valid_excuses}
|
||||||
|
|
||||||
def find_related(e, hint, circular_first=False):
|
def find_related(e, hint, circular_first=False):
|
||||||
if e not in valid_excuses:
|
if e not in valid_excuses:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user