Skip to content

Commit 44d6c1a

Browse files
committed
Make add_update_target work with multiversion installs
An installed targeted package is a target for all installed packages with the same name. We're currently ignoring obsoletes, but they should not be in an installed state anyway. Fixes issue #364
1 parent 6450cc6 commit 44d6c1a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/solver.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,6 +3106,12 @@ add_update_target(Solver *solv, Id p, Id how)
31063106
if (s->repo == installed)
31073107
{
31083108
queue_push2(solv->update_targets, p, p);
3109+
FOR_PROVIDES(pi, pip, s->name)
3110+
{
3111+
Solvable *si = pool->solvables + pi;
3112+
if (si->repo == installed && si->name == s->name && pi != p)
3113+
queue_push2(solv->update_targets, pi, p);
3114+
}
31093115
return;
31103116
}
31113117
identicalp = 0;

0 commit comments

Comments
 (0)