]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Update comment in addedmap2deduceq
authorMichael Schroeder <mls@suse.de>
Thu, 10 Sep 2020 10:26:30 +0000 (12:26 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 10 Sep 2020 10:26:30 +0000 (12:26 +0200)
The old "can't happen" is wrong as we now support complex
dependencies.

src/solver.c

index 25f48f1aebe693f800e13ff50c6bd51e5a2112d9..686a8af6a3b34230d8ff3443271ada5c08092aa3 100644 (file)
@@ -3240,7 +3240,7 @@ addedmap2deduceq(Solver *solv, Map *addedmap)
       p = -r->p;
       if (!MAPTST(addedmap, p))
        {
-         /* should never happen, but... */
+         /* this can happen with complex dependencies that have more than one pos literal */
          if (!solv->addedmap_deduceq.count || solv->addedmap_deduceq.elements[solv->addedmap_deduceq.count - 1] != -p)
             queue_push(&solv->addedmap_deduceq, -p);
          continue;