From: Michael Vogt Date: Thu, 7 Sep 2006 16:21:29 +0000 (+0200) Subject: * apt-pkg/depcache.cc: X-Git-Tag: 0.7.24ubuntu1~234^2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/98a27a213636270c44a6dbb32756b4dca73449b2?ds=inline;hp=-c * apt-pkg/depcache.cc: - bugfix in the "get-section" code --- 98a27a213636270c44a6dbb32756b4dca73449b2 diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 422343e4a..a031fa068 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -915,7 +915,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; }