From c4931fb1b24d2be1de5e8a01ebf1826a1941017b Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 30 Sep 2018 11:25:48 +0000 Subject: [PATCH] solver: Move a common variable out of an if Signed-off-by: Niels Thykier --- britney2/installability/solver.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/britney2/installability/solver.py b/britney2/installability/solver.py index 6fc1efe..81f414f 100644 --- a/britney2/installability/solver.py +++ b/britney2/installability/solver.py @@ -252,15 +252,14 @@ class InstallabilitySolver(InstallabilityTester): other_adds = set() other_rms = set() for d in ifilter_only(ptable, depgroup): + other = ptable[d] if d in going_in: # "other" provides something "key" needs, # schedule accordingly. - other = ptable[d] other_adds.add(other) else: # "other" removes something "key" needs, # schedule accordingly. - other = ptable[d] other_rms.add(other) for other in (other_adds - other_rms):