diff options
author | Michael Schroeder <mls@suse.de> | 2014-06-03 16:31:15 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2014-06-03 16:31:15 +0200 |
commit | 8d2aac14326394db57e9f27ccecac64691d3ff8b (patch) | |
tree | d68ff0d4964f06e9fb3a0e9a1ca4be12aaca7342 | |
parent | 6d968f185b7819babc9b962aa8a6e5ce0cf75615 (diff) | |
download | libsolv-8d2aac14326394db57e9f27ccecac64691d3ff8b.tar.gz libsolv-8d2aac14326394db57e9f27ccecac64691d3ff8b.tar.bz2 libsolv-8d2aac14326394db57e9f27ccecac64691d3ff8b.zip |
fix bugs in solver_describe_decision and solver_describe_weakdep_decision
-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 c519bea..403d9f8 100644 --- a/src/solver.c +++ b/src/solver.c @@ -4384,7 +4384,7 @@ solver_describe_decision(Solver *solv, Id p, Id *infop) if (why > 0) return SOLVER_REASON_RESOLVE; /* weak or orphaned */ - if (solv->decisionq.count < solv->decisioncnt_orphan) + if (i < solv->decisioncnt_orphan) return SOLVER_REASON_WEAKDEP; return SOLVER_REASON_RESOLVE_ORPHAN; } @@ -4439,7 +4439,7 @@ solver_describe_weakdep_decision(Solver *solv, Id p, Queue *whyq) if (!p2 && found) { queue_push(whyq, SOLVER_REASON_RECOMMENDED); - queue_push2(whyq, p2, rec); + queue_push2(whyq, i, rec); } } } |