diff options
author | bubulle@debian.org <> | 2007-06-21 10:10:35 +0200 |
---|---|---|
committer | bubulle@debian.org <> | 2007-06-21 10:10:35 +0200 |
commit | 4344b05c9b472b84752b8f9f75a372ce1356bcd9 (patch) | |
tree | c55cbead8fa7b355c40983ef6db5bfcba2b818a0 /apt-pkg/depcache.cc | |
parent | f44fec87348beacb381b947db5d4d0632d6c8926 (diff) | |
parent | ff6bf1be3844bcda15303efc81e234ede7501e3c (diff) |
sync with mvo
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r-- | apt-pkg/depcache.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index fe981ea76..50a75843f 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -216,7 +216,6 @@ bool pkgDepCache::writeStateFile(OpProgress *prog, bool InstalledOnly) pkgCache::PkgIterator pkg=Cache->FindPkg(pkgname); if(pkg.end() || pkg.VersionList().end()) continue; - bool oldAuto = section.FindI("Auto-Installed"); bool newAuto = (PkgState[pkg->ID].Flags & Flag::Auto); if(_config->FindB("Debug::pkgAutoRemove",false)) std::clog << "Update exisiting AutoInstall info: " @@ -1150,7 +1149,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; } |