Skip to content

Commit

Permalink
Use the correct solvable id when checking the noarch map
Browse files Browse the repository at this point in the history
Fixes issue #574
  • Loading branch information
mlschroe committed Nov 12, 2024
1 parent 081580d commit f525415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ replaces_installed_package(Pool *pool, Id p, Map *noupdate)
FOR_PROVIDES(p2, pp2, s->name)
{
s2 = pool->solvables + p2;
if (s2->repo == installed && s2->name == s->name && !(noupdate && MAPTST(noupdate, p - installed->start)))
if (s2->repo == installed && s2->name == s->name && !(noupdate && MAPTST(noupdate, p2 - installed->start)))
return 1;
}
if (!s->obsoletes)
Expand All @@ -1159,7 +1159,7 @@ replaces_installed_package(Pool *pool, Id p, Map *noupdate)
FOR_PROVIDES(p2, pp2, obs)
{
s2 = pool->solvables + p2;
if (s2->repo != pool->installed || (noupdate && MAPTST(noupdate, p - installed->start)))
if (s2->repo != pool->installed || (noupdate && MAPTST(noupdate, p2 - installed->start)))
continue;
if (!pool->obsoleteusesprovides && !pool_match_nevr(pool, s2, obs))
continue;
Expand Down

0 comments on commit f525415

Please sign in to comment.