[Aptitude-svn-commit] r4123 - in branches/aptitude-0.3/aptitude: . src/cmdline

Daniel Burrows dburrows at costa.debian.org
Tue Sep 20 04:15:30 UTC 2005


Author: dburrows
Date: Tue Sep 20 04:15:27 2005
New Revision: 4123

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/cmdline/cmdline_resolver.cc
Log:
Display resolver statistics from the command line.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Sep 20 04:15:27 2005
@@ -1,5 +1,9 @@
 2005-09-19  Daniel Burrows  <dburrows at debian.org>
 
+	* src/cmdline/cmdline_resolver.cc:
+
+	  Display resolver statistics from the command line.
+
 	* src/cmdline/cmdline_spinner.cc:
 
 	  Really handle the case where the message we want to display is

Modified: branches/aptitude-0.3/aptitude/src/cmdline/cmdline_resolver.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/cmdline/cmdline_resolver.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/cmdline/cmdline_resolver.cc	Tue Sep 20 04:15:27 2005
@@ -409,7 +409,8 @@
 
 
   cmdline_spinner spin;
-  spin.set_msg(_("Resolving dependencies..."));
+
+  std::cout << "Resolving dependencies..." << std::endl;
 
   threads::box<cmdline_resolver_continuation::resolver_result> retbox;
 
@@ -438,6 +439,11 @@
 
       if(!done)
 	{
+	  resolver_manager::state state = resman->state_snapshot();
+
+	  spin.set_msg(ssprintf(_("open: %d; closed: %d; defer: %d; conflict: %d"),
+				state.open_size, state.closed_size,
+				state.deferred_size, state.conflicts_size));
 	  spin.display();
 	  spin.tick();
 	}



More information about the Aptitude-svn-commit mailing list