From: Klaus Kaempf Date: Tue, 13 May 2008 09:43:00 +0000 (+0000) Subject: add comment X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~353 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=3dc69d0878fb606bfb179ee016761c1f421376c0;p=thirdparty%2Flibsolv.git add comment --- diff --git a/src/policy.c b/src/policy.c index 48b2f26c..d4ad9201 100644 --- a/src/policy.c +++ b/src/policy.c @@ -387,8 +387,17 @@ policy_illegal_vendorchange(Solver *solv, Solvable *s1, Solvable *s2) 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 @@ policy_findupdatepackages(Solver *solv, Solvable *s, Queue *qs, int allowall) 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;