From: Michael Schroeder Date: Thu, 31 May 2012 09:36:48 +0000 (+0200) Subject: - [valgrind] the userinstalled map only contains the installed packages. mea culpa... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2FSuSE-Code-12_1-Branch;p=thirdparty%2Flibsolv.git - [valgrind] the userinstalled map only contains the installed packages. mea culpa... --- diff --git a/src/rules.c b/src/rules.c index b024243b..264e6ae5 100644 --- a/src/rules.c +++ b/src/rules.c @@ -2280,7 +2280,7 @@ static void solver_createcleandepsmap(Solver *solv) { Id buddy = pool->nscallback(pool, pool->nscallbackdata, NAMESPACE_PRODUCTBUDDY, p); if (buddy >= installed->start && buddy < installed->end && pool->solvables[buddy].repo == installed) - MAPSET(&userinstalled, buddy); + MAPSET(&userinstalled, buddy - installed->start); } } }