prune_best_arch_name_version(Solver *solv, Pool *pool, Queue *plist)
{
if (solv && solv->bestSolvableCb)
- { /* The application is responsible for */
- return solv->bestSolvableCb (solv->pool, plist);
- }
+ { /* The application is responsible for */
+ return solv->bestSolvableCb(solv->pool, plist);
+ }
if (plist->count > 1)
prune_to_best_arch(pool, plist);
if (inst)
queue_push(plist, inst);
- prune_best_arch_name_version (solv, pool, plist);
+ prune_best_arch_name_version(solv, pool, plist);
}
Id a1 = s1->arch, a2 = s2->arch;
if (solv && solv->archCheckCb)
- { /* The application is responsible for */
- return solv->archCheckCb (solv->pool, s1, s2);
- }
+ { /* The application is responsible for */
+ return solv->archCheckCb(solv->pool, s1, s2);
+ }
/* we allow changes to/from noarch */
if (a1 == a2 || a1 == ARCH_NOARCH || a2 == ARCH_NOARCH)
Id vendormask1, vendormask2;
if (solv && solv->vendorCheckCb)
- { /* The application is responsible for */
- return solv->vendorCheckCb (solv->pool, s1, s2);
- }
+ { /* The application is responsible for */
+ return solv->vendorCheckCb(solv->pool, s1, s2);
+ }
if (s1->vendor == s2->vendor)
return 0;
queue_empty(qs);
if (solv && solv->updateCandidateCb)
- { /* The application is responsible for */
- return solv->updateCandidateCb (solv->pool, s, qs);
- }
+ { /* The application is responsible for */
+ return solv->updateCandidateCb(solv->pool, s, qs);
+ }
/*
* s = solvable ptr
pkg = -solv->decisionq.elements[solv->propagate_index++];
IF_POOLDEBUG (SAT_DEBUG_PROPAGATE)
{
- POOL_DEBUG(SAT_DEBUG_PROPAGATE, "popagate for decision %d level %d\n", -pkg, level);
+ POOL_DEBUG(SAT_DEBUG_PROPAGATE, "propagate for decision %d level %d\n", -pkg, level);
printruleelement(solv, SAT_DEBUG_PROPAGATE, 0, -pkg);
if (0)
printWatches(solv, SAT_DEBUG_SCHUBI);
{
/* try to keep as many packages as possible */
POOL_DEBUG(SAT_DEBUG_STATS, "installing system packages\n");
- for (i = solv->installed->start, n = 0; ; i++)
+ for (i = solv->installed->start; i < solv->installed->end; i++)
{
- if (n == solv->installed->nsolvables)
- break;
- if (i == solv->installed->end)
- i = solv->installed->start;
s = pool->solvables + i;
if (s->repo != solv->installed)
continue;
- n++;
if (solv->decisionmap[i] != 0)
continue;
POOL_DEBUG(SAT_DEBUG_PROPAGATE, "keeping %s\n", solvable2str(pool, s));
return;
}
if (level <= olevel)
- n = 0;
+ break;
}
+ if (i < solv->installed->end)
+ continue;
}
if (solv->weaksystemrules)
{
POOL_DEBUG(SAT_DEBUG_STATS, "installing weak system packages\n");
for (i = solv->installed->start; i < solv->installed->end; i++)
{
- if (pool->solvables[i].repo != solv->installed)
+ s = pool->solvables + i;
+ if (s->repo != solv->installed)
continue;
if (solv->decisionmap[i] > 0 || (solv->decisionmap[i] < 0 && solv->weaksystemrules[i - solv->installed->start] == 0))
continue;