Author: kkaempf Date: Tue May 13 11:43:00 2008 New Revision: 10056 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10056&view=rev Log: add comment Modified: trunk/sat-solver/src/policy.c Modified: trunk/sat-solver/src/policy.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/src/policy.c?rev=10056&r1=10055&r2=10056&view=diff ============================================================================== --- trunk/sat-solver/src/policy.c (original) +++ trunk/sat-solver/src/policy.c Tue May 13 11:43:00 2008 @@ -387,8 +387,17 @@ return 1; } + +/* + * find update candidates + * + * s: solvable to be updated + * qs: [out] queue to hold Ids of candidates + * allow_all: 0 = dont allow downgrades, 1 = allow all candidates + * + */ void -policy_findupdatepackages(Solver *solv, Solvable *s, Queue *qs, int allowall) +policy_findupdatepackages(Solver *solv, Solvable *s, Queue *qs, int allow_all) { /* installed packages get a special upgrade allowed rule */ Pool *pool = solv->pool; @@ -422,7 +431,7 @@ ps = pool->solvables + p; if (s->name == ps->name) /* name match */ { - if (!allowall) + if (!allow_all) { if (!solv->allowdowngrade && evrcmp(pool, s->evr, ps->evr, EVRCMP_MATCH_RELEASE) > 0) continue; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org