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

Daniel Burrows dburrows@costa.debian.org
Sat, 23 Apr 2005 02:09:52 +0000


Author: dburrows
Date: Sat Apr 23 02:09:49 2005
New Revision: 3063

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/generic/aptcache.cc
Log:
Make sure to actually move to newly generated solutions and update
the display.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Apr 23 02:09:49 2005
@@ -1,5 +1,10 @@
 2005-04-22  Daniel Burrows  <dburrows@debian.org>
 
+	* src/generic/aptcache.cc:
+
+	  In next_solution(), always advance to the newly created solution
+	  after generating it, and signal that the selection changed.
+
 	* src/solution_fragment.cc, src/solution_fragment.h, src/ui.cc:
 
 	  Add preliminary code to display a solution, and hook it up in

Modified: branches/aptitude-0.3/aptitude/src/generic/aptcache.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/aptcache.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/aptcache.cc	Sat Apr 23 02:09:49 2005
@@ -1454,6 +1454,8 @@
       // otherwise weirdness is happening.
       assert(!out_of_time);
       solutions.push_back(new aptitude_resolver::solution(resolver->find_next_solution(aptcfg->FindI(PACKAGE "::ProblemResolver::StepLimit", 10000))));
+      ++selected_solution;
+      selected_solution_changed();
       return *solutions.back();
     }
 }