Przeglądaj źródła

* merged from apt--mvo

Michael Vogt 19 lat temu
rodzic
commit
858a70ad51
1 zmienionych plików z 1 dodań i 1 usunięć
  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","");
       string s = _config->Find("APT::Install-Recommends-Section","");
       if(s.size() > 0) 
       if(s.size() > 0) 
       {
       {
-	 const char *sec = Dep.TargetPkg().Section();
+	 const char *sec = Dep.ParentVer().Section();
 	 if (sec && strcmp(sec, s.c_str()) == 0)
 	 if (sec && strcmp(sec, s.c_str()) == 0)
 	    return true;
 	    return true;
       }
       }