summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-10-07 20:24:10 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-10-07 20:24:10 +0200
commitc4ed75769f32eee57bd56350709b24b2bb7222aa (patch)
tree4f76b20d2a4c04685132e58437893deb4844f6bc /apt-pkg/depcache.cc
parentc5fdf360513f8d2e5858711ff46c744cddcdeb6f (diff)
parent5634f31af3ddd58171b660e48af18d9cb0939275 (diff)
merged from the debain-sid branch
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r--apt-pkg/depcache.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index d1bea4cf6..d8b4dc6d2 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -914,8 +914,9 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
{
//FIXME: deal better with or-groups(?)
DepIterator LocalStart = D;
-
- if(IsImportantDep(D) && Start.TargetPkg() == D.TargetPkg())
+
+ if(IsImportantDep(D) && !D.IsCritical() &&
+ Start.TargetPkg() == D.TargetPkg())
{
if(!isPreviouslySatisfiedImportantDep)
{