Skip to content

Commit fed077b

Browse files
committed
Add comments to explain the whatprovidesaux a bit
1 parent 37240e9 commit fed077b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/poolwhatprovides.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pool_createwhatprovides(Pool *pool)
279279
whatprovides[id]--;
280280
}
281281
else
282-
auxid = 1;
282+
auxid = 1; /* we have multiple provides for this name */
283283
if (whatprovidesauxdata)
284284
whatprovidesauxdata[whatprovides[id]] = auxid;
285285
}
@@ -898,7 +898,7 @@ pool_addrelproviders(Pool *pool, Id d)
898898
Solvable *s = pool->solvables + p;
899899
if (ppaux)
900900
{
901-
pid = *ppaux++;
901+
pid = *ppaux++; /* the id that provided the name, 1 if there are multiple providers */
902902
if (pid && pid != 1)
903903
{
904904
#if 0
@@ -907,7 +907,7 @@ pool_addrelproviders(Pool *pool, Id d)
907907
if (!ISRELDEP(pid))
908908
{
909909
if (pid != name)
910-
continue; /* wrong provides name */
910+
continue; /* wrong provides name (should not happen) */
911911
if (pool->disttype == DISTTYPE_DEB)
912912
continue; /* unversioned provides can never match versioned deps */
913913
}

0 commit comments

Comments
 (0)