]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
Download Release first, then Release.gpg
[apt.git] / apt-pkg / depcache.cc
index c25672d1cee6a1a651b823d3d7662bbe6075dbed..492d160297a3db2ee50fe4dd95f0c73e4391e9d4 100644 (file)
@@ -1225,7 +1225,7 @@ bool pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
               continue;
            }
            // now check if we should consider it a automatic dependency or not
-           if(InstPkg->CurrentVer == 0 && Pkg->Section != 0 && ConfigValueInSubTree("APT::Never-MarkAuto-Sections", Pkg.Section()))
+           if(InstPkg->CurrentVer == 0 && InstVer->Section != 0 && ConfigValueInSubTree("APT::Never-MarkAuto-Sections", InstVer.Section()))
            {
               if(DebugAutoInstall == true)
                  std::clog << OutputInDepth(Depth) << "Setting NOT as auto-installed (direct "