From 98a27a213636270c44a6dbb32756b4dca73449b2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 7 Sep 2006 18:21:29 +0200 Subject: * apt-pkg/depcache.cc: - bugfix in the "get-section" code --- apt-pkg/depcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg/depcache.cc') 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; } -- cgit v1.2.3