]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
add more dpointer placeholders
[apt.git] / apt-pkg / depcache.cc
index 0b5d6d8e6479b2dfd893a38fcd889fbb10cc0e45..23abc76c165139d164aabff72366ae879277d724 100644 (file)
@@ -1444,8 +1444,11 @@ void pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
            VerIterator Ver(*this,*I);
            PkgIterator Pkg = Ver.ParentPkg();
 
-           
-              
+           /* The List includes all packages providing this dependency,
+              even providers which are not installed, so skip them. */
+           if (PkgState[Pkg->ID].InstallVer == 0)
+              continue;
+
            if (PkgState[Pkg->ID].CandidateVer != *I &&
                Start->Type == Dep::DpkgBreaks)
               MarkInstall(Pkg,true,Depth + 1, false, ForceImportantDeps);