summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-10-01 18:06:40 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-10-01 18:06:40 +0200
commitcfb776e816dc21c27f422216a9aff8700b28f30b (patch)
tree45a9ee03f6f5aa3046d71657f8113e26fc63d3fc /apt-pkg/algorithms.cc
parentb462d75aab39f85d4ce9bd03c4dfda54f77b566f (diff)
* apt-pkg/algorithms.cc:
- fix simulation performance drop (thanks to Ferenc Wagner for reporting the issue)
Diffstat (limited to 'apt-pkg/algorithms.cc')
-rw-r--r--apt-pkg/algorithms.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc
index eaab4c0ea..59f994cd7 100644
--- a/apt-pkg/algorithms.cc
+++ b/apt-pkg/algorithms.cc
@@ -37,7 +37,8 @@ pkgProblemResolver *pkgProblemResolver::This = 0;
this is not necessary since the pkgCaches are fully shared now. */
pkgSimulate::pkgSimulate(pkgDepCache *Cache) : pkgPackageManager(Cache),
iPolicy(Cache),
- Sim(&Cache->GetCache(),&iPolicy)
+ Sim(&Cache->GetCache(),&iPolicy),
+ group(Sim)
{
Sim.Init(0);
Flags = new unsigned char[Cache->Head().PackageCount];