- allow installed packages in infarch rule generation
a = (a <= pool->lastarch) ? pool->id2arch[a] : 0;
if (a != 1 && bestarch && ((a ^ bestarch) & 0xffff0000) != 0)
{
+ if (pool->installed && ps->repo == pool->installed)
+ continue; /* always ok to keep an installed package */
for (j = 0; j < allowedarchs.count; j++)
{
aa = allowedarchs.elements[j];
}
if (level <= olevel)
{
- if (level < passlevel)
+ if (level == 1 || level < passlevel)
break; /* trouble */
if (level < olevel)
n = installed->start; /* redo all */
}
if (level <= olevel)
{
- if (level < passlevel)
+ if (level == 1 || level < passlevel)
break; /* trouble */
if (level < olevel)
n = installed->start; /* redo all */