mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-12 20:01:08 +00:00
solver: Merge two loops by using chain
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
16dc303190
commit
9971714e27
@ -226,10 +226,8 @@ class InstallabilitySolver(object):
|
||||
order[key] = {'before': set(), 'after': set()}
|
||||
going_in.update(adds)
|
||||
going_out.update(rms)
|
||||
for a in adds:
|
||||
ptable[a] = key
|
||||
for r in rms:
|
||||
ptable[r] = key
|
||||
for x in chain(adds, rms):
|
||||
ptable[x] = key
|
||||
|
||||
if debug_solver: # pragma: no cover
|
||||
self._dump_groups(groups)
|
||||
|
Loading…
x
Reference in New Issue
Block a user