summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-06-03 17:07:21 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2008-06-03 17:07:21 +0200
commit868fbaceaa49aed38ae4c02c022c8c975d197191 (patch)
treeb31923fa1dde91dad59f508952156b72c7d02ab4 /apt-pkg
parent2783b2615aa3ed0bf6969c3571fb058a00677645 (diff)
apt-pkg/depcache.cc: when checking for new important deps, skip critical ones
(LP: #236360)
Diffstat (limited to 'apt-pkg')
-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)
{