From 15505b8683ceb1169e0e1fd6e9e2ff970605bc62 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 8 May 2012 14:20:01 +0100 Subject: [PATCH] Avoid modifying existing restrictions list in justify_decision() --- zeroinstall/injector/solver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/zeroinstall/injector/solver.py b/zeroinstall/injector/solver.py index 599140d..764b149 100644 --- a/zeroinstall/injector/solver.py +++ b/zeroinstall/injector/solver.py @@ -724,9 +724,7 @@ class SATSolver(Solver): assert isinstance(iface, model.Interface), iface restrictions = self.extra_restrictions.copy() - ir = restrictions.get(iface, []) - restrictions[iface] = ir - ir.append(_ForceImpl(impl.id)) + restrictions[iface] = restrictions.get(iface, []) + [_ForceImpl(impl.id)] s = SATSolver(self.config, restrictions) s.record_details = True s.solve_for(requirements) -- 2.11.4.GIT