The next level is actually "level + 1", so by using level we punch
zeros in our decisionmap leading to some nasty bugs later on
(e.g. when we need to revert).
continue;
if (solv->decisionmap[p] == 0)
{
- solv->decisionmap[p] = level;
+ solv->decisionmap[p] = level + 1;
haveone = 1;
}
}
dq->elements[j++] = dq->elements[i];
queue_truncate(dq, j);
FOR_REPO_SOLVABLES(solv->installed, p, s)
- if (solv->decisionmap[p] == level)
+ if (solv->decisionmap[p] == level + 1)
solv->decisionmap[p] = 0;
}