- [valgrind] the userinstalled map only contains the installed packages. mea culpa...
authorMichael Schroeder <mls@suse.de>
Thu, 31 May 2012 09:36:48 +0000 (11:36 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 31 May 2012 09:36:48 +0000 (11:36 +0200)
src/rules.c

index 4128903..4d5d18f 100644 (file)
@@ -2448,7 +2448,7 @@ solver_createcleandepsmap(Solver *solv, Map *cleandepsmap, int unneeded)
                {
                  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);
                }
            }
        }