Skip to content

Commit 931e492

Browse files
committed
Make repo_mark_retracted_packages only look at the provided repo
Before this commit it worked like pool_mark_retracted_packages, which is also something that we might need in the future. For now, limit the search to the specified repo. This change does nothing for the only use case that we currently have, namely the repo2solv tool.
1 parent cfb8553 commit 931e492

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/repo_updateinfoxml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ repo_mark_retracted_packages(Repo *repo, Id retractedmarker)
524524

525525
Queue q;
526526
queue_init(&q);
527-
for (p = 1; p < pool->nsolvables; p++)
527+
FOR_REPO_SOLVABLES(repo, p, s)
528528
{
529529
const char *status;
530530
s = pool->solvables + p;
@@ -578,7 +578,7 @@ repo_mark_retracted_packages(Repo *repo, Id retractedmarker)
578578
else if (q.elements[i + 1] == retractedname && q.elements[i + 2] == retractedevr)
579579
{
580580
s = pool->solvables + q.elements[i];
581-
s->provides = repo_addid_dep(repo, s->provides, retractedmarker, 0);
581+
s->provides = repo_addid_dep(s->repo, s->provides, retractedmarker, 0);
582582
}
583583
}
584584
queue_free(&q);

0 commit comments

Comments
 (0)