Procházet zdrojové kódy

* apt-pkg/depcache.cc:
- bugfix in the "get-section" code

Michael Vogt před 20 roky
rodič
revize
98a27a2136
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      apt-pkg/depcache.cc

+ 1 - 1
apt-pkg/depcache.cc

@@ -915,7 +915,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;
       }
       }