diff options
Diffstat (limited to 'src/solver.c')
-rw-r--r-- | src/solver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solver.c b/src/solver.c index d87b1f0..29ee8ea 100644 --- a/src/solver.c +++ b/src/solver.c @@ -1049,7 +1049,7 @@ static void apply_constraint(struct apk_solver_state *ss, struct apk_dependency } if (name->ss.last_touched_decision == 0 || changed) { - dep->solver_state = name->ss.last_touched_decision; + dep->solver_state = name->ss.last_touched_decision + 1; name->ss.last_touched_decision = ss->num_decisions; } @@ -1122,7 +1122,7 @@ static void undo_constraint(struct apk_solver_state *ss, struct apk_dependency * } if (dep->solver_state) { - name->ss.last_touched_decision = dep->solver_state; + name->ss.last_touched_decision = dep->solver_state - 1; dep->solver_state = 0; } |