[Aptitude-devel] r3078 - in branches/aptitude-0.3/aptitude: . src/generic/problemresolver

Daniel Burrows dburrows@costa.debian.org
Sat, 23 Apr 2005 16:15:06 +0000


Author: dburrows
Date: Sat Apr 23 16:15:03 2005
New Revision: 3078

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h
Log:
Fix solution::dump

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Apr 23 16:15:03 2005
@@ -1,5 +1,10 @@
 2005-04-23  Daniel Burrows  <dburrows@debian.org>
 
+	* src/generic/problemresolver/problemresolver.h:
+
+	  Fix the solution dumper to work properly on non-cout streams too
+	  (it called cout instead of its parameter in a few places).
+
 	* src/generic/aptcache.h:
 
 	  Remove the need to include problemresolver.h from every single

Modified: branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h	Sat Apr 23 16:15:03 2005
@@ -344,11 +344,11 @@
 	i!=get_broken().end(); ++i)
       {
 	if(i!=get_broken().begin())
-	  std::cout << ", ";
-	std::cout << *i;
+	  out << ", ";
+	out << *i;
       }
 
-    std::cout << "];" << get_score();
+    out<< "];" << get_score();
   }
 }; // End solution wrapper