Browse Source

* apt-pkg/depcache.cc:
- merge missing bugfix from ubuntu branch

Michael Vogt 19 years ago
parent
commit
8a7bd39bdc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apt-pkg/depcache.cc

+ 1 - 1
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;
       }