From: Michael Schroeder Date: Tue, 29 Jul 2025 11:21:34 +0000 (+0200) Subject: Add comments to explain the whatprovidesaux a bit X-Git-Tag: 0.7.35~8 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fed077b902b49ab20c03d08061e6b6eb20c191d8;p=thirdparty%2Flibsolv.git Add comments to explain the whatprovidesaux a bit --- 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 */ }