X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/f32484472374cb6c93fef0cd4ee9f71a7b80ec8a..3bb98bee11b38df0264099f3c9e858880759999d:/apt-pkg/depcache.cc?ds=sidebyside diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index fe981ea76..ca9636cc1 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -1150,7 +1150,7 @@ bool pkgDepCache::Policy::IsImportantDep(DepIterator Dep) string s = _config->Find("APT::Install-Recommends-Section",""); if(s.size() > 0) { - const char *sec = Dep.TargetPkg().Section(); + const char *sec = Dep.ParentVer().Section(); if (sec && strcmp(sec, s.c_str()) == 0) return true; } @@ -1378,3 +1378,4 @@ bool pkgDepCache::Sweep() return true; } +