* apt-pkg/depcache.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 14 Jun 2007 09:05:18 +0000 (11:05 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 14 Jun 2007 09:05:18 +0000 (11:05 +0200)
  - merge missing bugfix from ubuntu branch

apt-pkg/depcache.cc

index fe981ea..5979f83 100644 (file)
@@ -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;
       }