summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-07 22:55:14 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-07 22:55:14 +0200
commit2ea152b6fb5799f180d4133dc76c52cf1a122f54 (patch)
tree6c2be37fc2483f779453a067175b1ddadf7aa6b7 /apt-pkg/depcache.cc
parent3a089a0178ee7b3adff28dcc8749735898201e27 (diff)
parent98a27a213636270c44a6dbb32756b4dca73449b2 (diff)
* merged from the apt--install-recommends branch
Diffstat (limited to 'apt-pkg/depcache.cc')
-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 740d14426..15d7bac43 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -1343,7 +1343,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;
}