From: Michael Schroeder Date: Fri, 5 Jan 2018 14:28:45 +0000 (+0100) Subject: Fix last commit when the involvedmap has a zero size X-Git-Tag: 0.6.31~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d8399a4ceee0fda1a40b82e27dcf655fb84e31e;p=thirdparty%2Flibsolv.git Fix last commit when the involvedmap has a zero size --- diff --git a/src/rules.c b/src/rules.c index 49d689df..cf368e41 100644 --- a/src/rules.c +++ b/src/rules.c @@ -1926,11 +1926,11 @@ solver_createdupmaps(Solver *solv) * this before creating the update rules */ if (solv->dupinvolvedmap_all) solv->updatemap_all = 1; - if (installed && !solv->updatemap_all) + else if (installed && !solv->updatemap_all && solv->dupinvolvedmap.size) { FOR_REPO_SOLVABLES(installed, p, s) { - if (!solv->dupinvolvedmap_all && !MAPTST(&solv->dupinvolvedmap, p)) + if (!MAPTST(&solv->dupinvolvedmap, p)) continue; if (!solv->updatemap.size) map_grow(&solv->updatemap, installed->end - installed->start);