Skip to content

Commit f525415

Browse files
committed
Use the correct solvable id when checking the noarch map
Fixes issue #574
1 parent 081580d commit f525415

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ replaces_installed_package(Pool *pool, Id p, Map *noupdate)
11481148
FOR_PROVIDES(p2, pp2, s->name)
11491149
{
11501150
s2 = pool->solvables + p2;
1151-
if (s2->repo == installed && s2->name == s->name && !(noupdate && MAPTST(noupdate, p - installed->start)))
1151+
if (s2->repo == installed && s2->name == s->name && !(noupdate && MAPTST(noupdate, p2 - installed->start)))
11521152
return 1;
11531153
}
11541154
if (!s->obsoletes)
@@ -1159,7 +1159,7 @@ replaces_installed_package(Pool *pool, Id p, Map *noupdate)
11591159
FOR_PROVIDES(p2, pp2, obs)
11601160
{
11611161
s2 = pool->solvables + p2;
1162-
if (s2->repo != pool->installed || (noupdate && MAPTST(noupdate, p - installed->start)))
1162+
if (s2->repo != pool->installed || (noupdate && MAPTST(noupdate, p2 - installed->start)))
11631163
continue;
11641164
if (!pool->obsoleteusesprovides && !pool_match_nevr(pool, s2, obs))
11651165
continue;

0 commit comments

Comments
 (0)