- [valgrind] the userinstalled map only contains the installed packages. mea culpa...
[platform/upstream/libsolv.git] / 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);
                }
            }
        }