소스 검색

* apt-pkg/depcache.cc:
- fix incorrect std::cout usage for debug output

Michael Vogt 16 년 전
부모
커밋
0c01e682d2
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      apt-pkg/depcache.cc
  2. 2 0
      debian/changelog

+ 2 - 2
apt-pkg/depcache.cc

@@ -186,7 +186,7 @@ bool pkgDepCache::readStateFile(OpProgress *Prog)			/*{{{*/
 	    if(reason > 0)
 	    if(reason > 0)
 	       PkgState[pkg->ID].Flags  |= Flag::Auto;
 	       PkgState[pkg->ID].Flags  |= Flag::Auto;
 	    if(debug_autoremove)
 	    if(debug_autoremove)
-	       std::cout << "Auto-Installed : " << pkgname << std::endl;
+	       std::clog << "Auto-Installed : " << pkgname << std::endl;
 	    amt+=section.size();
 	    amt+=section.size();
 	    if(Prog != NULL)
 	    if(Prog != NULL)
 	       Prog->OverallProgress(amt, file_size, 1, 
 	       Prog->OverallProgress(amt, file_size, 1, 
@@ -1511,7 +1511,7 @@ bool pkgDepCache::Sweep()						/*{{{*/
      {
      {
 	state.Garbage=true;
 	state.Garbage=true;
 	if(debug_autoremove)
 	if(debug_autoremove)
-	   std::cout << "Garbage: " << p.Name() << std::endl;
+	   std::clog << "Garbage: " << p.Name() << std::endl;
      }
      }
   }   
   }   
 
 

+ 2 - 0
debian/changelog

@@ -34,6 +34,8 @@ apt (0.7.25.4) UNRELEASED; urgency=low
   * [ Abi break ] apt-pkg/acquire-item.{cc,h}:
   * [ Abi break ] apt-pkg/acquire-item.{cc,h}:
     - add "IsIndexFile" to constructor of pkgAcqFile so that it sends
     - add "IsIndexFile" to constructor of pkgAcqFile so that it sends
       the right cache control headers
       the right cache control headers
+  * apt-pkg/depcache.cc:
+    - fix incorrect std::cout usage for debug output
 
 
   [ Robert Collins ]
   [ Robert Collins ]
   * Change the package index Info methods to allow apt-cache policy to be
   * Change the package index Info methods to allow apt-cache policy to be