mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-01 12:51:43 +00:00
Defer a frozenset call
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
52a1dd6ffa
commit
249a19bfef
@ -520,9 +520,9 @@ class InstallabilityTester(object):
|
|||||||
# - not in testing
|
# - not in testing
|
||||||
# - known to be broken (by cache)
|
# - known to be broken (by cache)
|
||||||
# - in never
|
# - in never
|
||||||
candidates = frozenset((depgroup & testing) - never)
|
candidates = (depgroup & testing) - never
|
||||||
|
|
||||||
if len(candidates) == 0:
|
if not candidates:
|
||||||
# We got no candidates to satisfy it - this
|
# We got no candidates to satisfy it - this
|
||||||
# package cannot be installed with the current
|
# package cannot be installed with the current
|
||||||
# testing
|
# testing
|
||||||
@ -563,7 +563,11 @@ class InstallabilityTester(object):
|
|||||||
continue
|
continue
|
||||||
elif len(candidates) == len(new_cand):
|
elif len(candidates) == len(new_cand):
|
||||||
stats.eqv_table_reduced_by_zero += 1
|
stats.eqv_table_reduced_by_zero += 1
|
||||||
|
|
||||||
candidates = frozenset(new_cand)
|
candidates = frozenset(new_cand)
|
||||||
|
else:
|
||||||
|
# Candidates have to be a frozenset to be added to choices
|
||||||
|
candidates = frozenset(candidates)
|
||||||
# defer this choice till later
|
# defer this choice till later
|
||||||
choices.add(candidates)
|
choices.add(candidates)
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user