From fed077b902b49ab20c03d08061e6b6eb20c191d8 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 29 Jul 2025 13:21:34 +0200 Subject: [PATCH] Add comments to explain the whatprovidesaux a bit --- src/poolwhatprovides.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/poolwhatprovides.c b/src/poolwhatprovides.c index 07e6bce7..32098944 100644 --- a/src/poolwhatprovides.c +++ b/src/poolwhatprovides.c @@ -279,7 +279,7 @@ pool_createwhatprovides(Pool *pool) whatprovides[id]--; } else - auxid = 1; + auxid = 1; /* we have multiple provides for this name */ if (whatprovidesauxdata) whatprovidesauxdata[whatprovides[id]] = auxid; } @@ -898,7 +898,7 @@ pool_addrelproviders(Pool *pool, Id d) Solvable *s = pool->solvables + p; if (ppaux) { - pid = *ppaux++; + pid = *ppaux++; /* the id that provided the name, 1 if there are multiple providers */ if (pid && pid != 1) { #if 0 @@ -907,7 +907,7 @@ pool_addrelproviders(Pool *pool, Id d) if (!ISRELDEP(pid)) { if (pid != name) - continue; /* wrong provides name */ + continue; /* wrong provides name (should not happen) */ if (pool->disttype == DISTTYPE_DEB) continue; /* unversioned provides can never match versioned deps */ } -- 2.47.2