diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2020-11-27 14:49:33 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2020-11-27 14:49:33 +0900 |
commit | b712cabb59f7155205489f15a37addb4ac8b0069 (patch) | |
tree | f23ecab07fbaa48e274c587d66708daad1cd347a /src/solver.c | |
parent | 2792a56227313bb9f16bd70604e79f47e9650885 (diff) | |
download | libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.tar.gz libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.tar.bz2 libsolv-b712cabb59f7155205489f15a37addb4ac8b0069.zip |
Imported Upstream version 0.7.15upstream/0.7.15
Diffstat (limited to 'src/solver.c')
-rw-r--r-- | src/solver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solver.c b/src/solver.c index 7fcc3fb..686a8af 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; @@ -3280,7 +3280,7 @@ deduceq2addedmap(Solver *solv, Map *addedmap) if (p > 0) MAPSET(addedmap, p); else - MAPCLR(addedmap, p); + MAPCLR(addedmap, -p); } } |