]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/depcache.cc: when checking for new important deps, skip critical ones
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 3 Jun 2008 15:07:21 +0000 (17:07 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 3 Jun 2008 15:07:21 +0000 (17:07 +0200)
      (LP: #236360)

apt-pkg/depcache.cc

index d1bea4cf6786d186f7008bfb784ac8c5c2c28cb6..d8b4dc6d2802801e336c9d09406f524ff52b4010 100644 (file)
@@ -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)
                     {