summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-03-13 13:38:52 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-03-13 13:38:52 +0100
commitad08bf610f0849ddd877abab0f2020dd1ae52dd1 (patch)
tree076b6d06ad304ca5c725eb41e846759f6c764d0f /apt-pkg
parentba688e8d8be99334b96f32a861ad23a0abb9b886 (diff)
* apt-pkg/packagemanager.cc:
- do not spin 100% cpu in FixMissing() (LP#84476)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/packagemanager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc
index b0dd43629..1e57d6455 100644
--- a/apt-pkg/packagemanager.cc
+++ b/apt-pkg/packagemanager.cc
@@ -95,9 +95,10 @@ bool pkgPackageManager::GetArchives(pkgAcquire *Owner,pkgSourceList *Sources,
be downloaded. */
bool pkgPackageManager::FixMissing()
{
+ pkgDepCache::ActionGroup group(Cache);
pkgProblemResolver Resolve(&Cache);
List->SetFileList(FileNames);
-
+
bool Bad = false;
for (PkgIterator I = Cache.PkgBegin(); I.end() == false; I++)
{