From: Michael Vogt Date: Tue, 3 Jun 2008 15:07:21 +0000 (+0200) Subject: apt-pkg/depcache.cc: when checking for new important deps, skip critical ones X-Git-Tag: 0.7.24ubuntu1~66^2~1 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/868fbaceaa49aed38ae4c02c022c8c975d197191 apt-pkg/depcache.cc: when checking for new important deps, skip critical ones (LP: #236360) --- 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) {