]> git.saurik.com Git - apt.git/commitdiff
when doing MarkInstall() packages may also get removed, so show them in the debug...
authorMichael Vogt <mvo@debian.org>
Thu, 27 Jun 2013 05:26:39 +0000 (07:26 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 27 Jun 2013 05:26:39 +0000 (07:26 +0200)
apt-pkg/depcache.cc

index 6a3e9bfc42a3d3c7ee23034785609b20633c85d8..f9bfa1f67b30706b881425b88d4ce45e31731396 100644 (file)
@@ -1243,9 +1243,16 @@ bool pkgDepCache::MarkInstall(PkgIterator const &Pkg,bool AutoInst,
                PkgState[Pkg->ID].CandidateVer != *I &&
                MarkInstall(Pkg,true,Depth + 1, false, ForceImportantDeps) == true)
               continue;
-           else if ((Start->Type == pkgCache::Dep::Conflicts || Start->Type == pkgCache::Dep::DpkgBreaks) &&
-                    MarkDelete(Pkg,false,Depth + 1, false) == false)
-              break;
+           else if (Start->Type == pkgCache::Dep::Conflicts || 
+                     Start->Type == pkgCache::Dep::DpkgBreaks) 
+            {
+               if(DebugAutoInstall == true)
+                  std::clog << OutputInDepth(Depth) 
+                            << " Removing: " << Pkg.Name()
+                            << std::endl;
+               if (MarkDelete(Pkg,false,Depth + 1, false) == false)
+                  break;
+            }
         }
         continue;
       }