From: Michael Vogt Date: Mon, 18 Jun 2007 12:15:41 +0000 (+0200) Subject: * merged from main X-Git-Tag: 0.7.24ubuntu1~182 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/3bb98bee11b38df0264099f3c9e858880759999d * merged from main --- 3bb98bee11b38df0264099f3c9e858880759999d diff --cc apt-pkg/depcache.cc index 491ba6d4c,5979f8379..ca9636cc1 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@@ -1350,34 -1378,3 +1378,4 @@@ bool pkgDepCache::Sweep( return true; } + - // Policy::IsImportantDep - True if the dependency is important /*{{{*/ - // --------------------------------------------------------------------- - /* */ - bool pkgDepCache::Policy::IsImportantDep(DepIterator Dep) - { - if(Dep.IsCritical()) - return true; - else if(Dep->Type == pkgCache::Dep::Recommends) - { - if ( _config->FindB("APT::Install-Recommends", false)) - return true; - // we suport a special mode to only install-recommends for certain - // sections - // FIXME: this is a meant as a temporarly solution until the - // recommends are cleaned up - string s = _config->Find("APT::Install-Recommends-Section",""); - if(s.size() > 0) - { - const char *sec = Dep.ParentVer().Section(); - if (sec && strcmp(sec, s.c_str()) == 0) - return true; - } - } - else if(Dep->Type == pkgCache::Dep::Suggests) - return _config->FindB("APT::Install-Suggests", false); - - return false; - } - /*}}}*/ -