summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-07 18:21:29 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-07 18:21:29 +0200
commit98a27a213636270c44a6dbb32756b4dca73449b2 (patch)
tree89b54d848f9823b83d67c3cb521330c5bebaa305 /apt-pkg
parent1d7229332a7707e9abb341a7ce75ce332df54420 (diff)
* apt-pkg/depcache.cc:
- bugfix in the "get-section" code
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/depcache.cc2
1 files changed, 1 insertions, 1 deletions
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;
}