mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-24 20:01:15 +00:00
britney.py: Avoid some redundancy in auto_hinter()
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
2f663fa7b9
commit
74060e4e0a
@ -2767,11 +2767,11 @@ class Britney(object):
|
||||
if e not in excuses:
|
||||
return False
|
||||
excuse = excuses[e]
|
||||
if e in self.sources['testing'] and self.sources['testing'][e][VERSION] == excuse.ver[1]:
|
||||
if e in sources_t and sources_t[e][VERSION] == excuse.ver[1]:
|
||||
return True
|
||||
if not circular_first:
|
||||
hint[e] = excuse.ver[1]
|
||||
if len(excuse.deps) == 0:
|
||||
if not excuse.deps:
|
||||
return hint
|
||||
for p in excuse.deps:
|
||||
if p in hint: continue
|
||||
@ -2784,9 +2784,9 @@ class Britney(object):
|
||||
mincands = []
|
||||
for e in excuses:
|
||||
excuse = excuses[e]
|
||||
if e in self.sources['testing'] and self.sources['testing'][e][VERSION] == excuse.ver[1]:
|
||||
if e in sources_t and sources_t[e][VERSION] == excuse.ver[1]:
|
||||
continue
|
||||
if len(excuse.deps) > 0:
|
||||
if excuse.deps:
|
||||
hint = find_related(e, {}, True)
|
||||
if isinstance(hint, dict) and e in hint and hint not in candidates:
|
||||
candidates.append(hint.items())
|
||||
|
Loading…
x
Reference in New Issue
Block a user