]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
* merged from the apt--install-recommends branch
[apt.git] / apt-pkg / depcache.cc
index 740d14426cffd447668c977aac2435c7567f916a..15d7bac4397c8c8b3ace996a04673184e8dcbe31 100644 (file)
@@ -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;
       }