From: Michael Schroeder Date: Thu, 10 Sep 2020 10:26:30 +0000 (+0200) Subject: Update comment in addedmap2deduceq X-Git-Tag: 0.7.15~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b7ee3b1b431717fadec1024ca212502b3c2913;p=thirdparty%2Flibsolv.git Update comment in addedmap2deduceq The old "can't happen" is wrong as we now support complex dependencies. --- diff --git a/src/solver.c b/src/solver.c index 25f48f1a..686a8af6 100644 --- a/src/solver.c +++ b/src/solver.c @@ -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;