]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
* merged from main
[apt.git] / apt-pkg / depcache.cc
index af2fd54c7a10f7ad33cde8d8b70c7fb3d1c9d52b..ca9636cc1cb0d3d966bec2763603013d4269cd53 100644 (file)
@@ -178,7 +178,7 @@ bool pkgDepCache::readStateFile(OpProgress *Prog)
    return true;
 }
 
-bool pkgDepCache::writeStateFile(OpProgress *prog)
+bool pkgDepCache::writeStateFile(OpProgress *prog, bool InstalledOnly)
 {
    if(_config->FindB("Debug::pkgAutoRemove",false))
       std::clog << "pkgDepCache::writeStateFile()" << std::endl;
@@ -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;
       }
@@ -1378,3 +1378,4 @@ bool pkgDepCache::Sweep()
 
    return true;
 }
+