Author: mlschroe Date: Wed Apr 16 18:22:01 2008 New Revision: 9673 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9673&view=rev Log: - fix probleminfo if solvable conflicts with itself and has no requires Modified: trunk/sat-solver/src/solver.c Modified: trunk/sat-solver/src/solver.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/solver.c?rev=9673&r1=9672&r2=9673&view=diff ============================================================================== --- trunk/sat-solver/src/solver.c (original) +++ trunk/sat-solver/src/solver.c Wed Apr 16 18:22:01 2008 @@ -3011,20 +3011,22 @@ return SOLVER_PROBLEM_NOT_INSTALLABLE; } /* check requires */ - assert(s->requires); - reqp = s->repo->idarraydata + s->requires; - while ((req = *reqp++) != 0) + if (s->requires) { - if (req == SOLVABLE_PREREQMARKER) - continue; - dp = pool_whatprovides(pool, req); - if (*dp == 0) - break; - } - if (req) - { - *depp = req; - return SOLVER_PROBLEM_NOTHING_PROVIDES_DEP; + reqp = s->repo->idarraydata + s->requires; + while ((req = *reqp++) != 0) + { + if (req == SOLVABLE_PREREQMARKER) + continue; + dp = pool_whatprovides(pool, req); + if (*dp == 0) + break; + } + if (req) + { + *depp = req; + return SOLVER_PROBLEM_NOTHING_PROVIDES_DEP; + } } assert(!solv->allowselfconflicts); assert(s->conflicts); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org