From: Igor Raits Date: Wed, 6 May 2026 06:48:24 +0000 (+0200) Subject: Fix repo_unset clearing wrong field for SOLVABLE_SUPPLEMENTS X-Git-Tag: 0.7.38~16^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=refs%2Fpull%2F621%2Fhead;p=thirdparty%2Flibsolv.git Fix repo_unset clearing wrong field for SOLVABLE_SUPPLEMENTS The case for SOLVABLE_SUPPLEMENTS was missing a return statement and fell through to SOLVABLE_ENHANCES, so calling repo_unset() with SOLVABLE_SUPPLEMENTS cleared both s->supplements and s->enhances. Bug has been present since the function (originally repo_set_deleted) was added in 5f153e32 (2012). --- diff --git a/src/repo.c b/src/repo.c index 1aee4a83..6f6b85bf 100644 --- a/src/repo.c +++ b/src/repo.c @@ -1621,6 +1621,7 @@ repo_unset(Repo *repo, Id p, Id keyname) return; case SOLVABLE_SUPPLEMENTS: s->supplements = 0; + return; case SOLVABLE_ENHANCES: s->enhances = 0; return;