summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-06-14 11:05:18 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-06-14 11:05:18 +0200
commit8a7bd39bdc6e993cd64c639e9e535a380846c2e9 (patch)
tree2b875b5bf3f581c30660a37c10e10a8c0e9d1b42 /apt-pkg
parent47026cdea6ba7d145922ce21d5ec478598126b8d (diff)
downloadapt-8a7bd39bdc6e993cd64c639e9e535a380846c2e9.tar.gz
* apt-pkg/depcache.cc:
- merge missing bugfix from ubuntu branch
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 fe981ea76..5979f8379 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;
}