mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 11:21:13 +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
|
||||
# - known to be broken (by cache)
|
||||
# - 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
|
||||
# package cannot be installed with the current
|
||||
# testing
|
||||
@ -563,7 +563,11 @@ class InstallabilityTester(object):
|
||||
continue
|
||||
elif len(candidates) == len(new_cand):
|
||||
stats.eqv_table_reduced_by_zero += 1
|
||||
|
||||
candidates = frozenset(new_cand)
|
||||
else:
|
||||
# Candidates have to be a frozenset to be added to choices
|
||||
candidates = frozenset(candidates)
|
||||
# defer this choice till later
|
||||
choices.add(candidates)
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user