From 693f01803f478539aff7bd3d6cc29be8bc681a6b Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 4 Jun 2009 18:53:43 +0200 Subject: [PATCH] - fix bugs in problem handling --- src/problems.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/problems.c b/src/problems.c index f76a761..bed7303 100644 --- a/src/problems.c +++ b/src/problems.c @@ -392,7 +392,7 @@ convertsolution(Solver *solv, Id why, Queue *solutionq) break; } if (!p) - p = -solv->rules[why].p; /* XXX: what to do here? */ + return; /* false alarm */ queue_push(solutionq, SOLVER_SOLUTION_INFARCH); queue_push(solutionq, p); return; @@ -413,7 +413,7 @@ convertsolution(Solver *solv, Id why, Queue *solutionq) break; } if (!p) - p = -solv->rules[why].p; /* XXX: what to do here? */ + return; /* false alarm */ queue_push(solutionq, SOLVER_SOLUTION_DISTUPGRADE); queue_push(solutionq, p); return; @@ -565,7 +565,7 @@ create_solutions(Solver *solv, int probnr, int solidx) if (solv->solutions.count == solstart + 1) { solv->solutions.count--; - if (!essentialok && i + 1 == problem.count) + if (!essentialok && i + 1 == problem.count && !nsol) { /* nothing found, start over */ essentialok = 1; -- 2.7.4