Przeglądaj źródła

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

Michael Vogt 20 lat temu
rodzic
commit
98a27a2136
1 zmienionych plików z 1 dodań i 1 usunięć
  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","");
       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;
       }