]> git.saurik.com Git - apt.git/commitdiff
- run the problemResolver after a task was installed
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 11 Mar 2008 16:41:55 +0000 (17:41 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 11 Mar 2008 16:41:55 +0000 (17:41 +0100)
    so that it can correct any missing dependencies

cmdline/apt-get.cc
debian/changelog

index c522d4f87adc4ed9174fb659144e123619e428f3..c8671447e633fdee47cfd66e44676ff04770696d 100644 (file)
@@ -1506,10 +1506,13 @@ bool TryInstallTask(pkgDepCache &Cache, pkgProblemResolver &Fix,
       buf[end-start] = 0x0;
       if (regexec(&Pattern,buf,0,0,0) != 0)
         continue;
-      res &= TryToInstall(Pkg,Cache,Fix,Remove,false,ExpectedInst);
+      res &= TryToInstall(Pkg,Cache,Fix,Remove,true,ExpectedInst);
       found = true;
    }
    
+   // now let the problem resolver deal with any issues
+   Fix.Resolve(true);
+
    if(!found)
       _error->Error(_("Couldn't find task %s"),taskname);
 
index 6fd1b274611a2e906d1bda01e11a55c20db10bd6..df23ed1b2eb3b1e36c91bc8c785cf44bad2739f5 100644 (file)
@@ -2,6 +2,8 @@ apt (0.7.9ubuntu14) hardy; urgency=low
 
   * cmdline/apt-get.cc:
     - fix incorrect help output for -f (LP: #57487)
+    - run the problemResolver after a task was installed
+      so that it can correct any missing dependencies
   * typo fixes (LP: #107960)
 
  --