]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
merged from debian-experimental2
[apt.git] / apt-pkg / depcache.cc
index 6943dcfcdd079018420983bf6b3acdbd35af4dfb..9123b1c12024f8362ce2046bf60478cfcf53f802 100644 (file)
@@ -1512,7 +1512,7 @@ bool pkgDepCache::Policy::IsImportantDep(DepIterator const &Dep)
       return true;
    else if(Dep->Type == pkgCache::Dep::Recommends) 
    {
-      if ( _config->FindB("APT::Install-Recommends", false))
+      if (InstallRecommends)
         return true;
       // we suport a special mode to only install-recommends for certain
       // sections
@@ -1523,7 +1523,7 @@ bool pkgDepCache::Policy::IsImportantDep(DepIterator const &Dep)
         return true;
    }
    else if(Dep->Type == pkgCache::Dep::Suggests)
-     return _config->FindB("APT::Install-Suggests", false);
+      return InstallSuggests;
 
    return false;
 }