summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-03-11 17:41:55 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-03-11 17:41:55 +0100
commit95717122196eb888bc81f5c3e8daa74cad8db649 (patch)
tree86cb325a0e4a56bb780c143986b45b9fe0d9bfe3
parent871e594a6a75f8eb23942e1e097cba458fca8c5e (diff)
- run the problemResolver after a task was installed
so that it can correct any missing dependencies
-rw-r--r--cmdline/apt-get.cc5
-rw-r--r--debian/changelog2
2 files changed, 6 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index c522d4f87..c8671447e 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -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);
diff --git a/debian/changelog b/debian/changelog
index 6fd1b2746..df23ed1b2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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)
--