[Aptitude-devel] r2947 - branches/aptitude-0.3/aptitude/src/generic/problemresolver

Daniel Burrows dburrows@costa.debian.org
Fri, 08 Apr 2005 02:49:54 +0000


Author: dburrows
Date: Fri Apr  8 02:49:53 2005
New Revision: 2947

Modified:
   branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc
Log:
Fix broken_dep_iter.

Modified: branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/problemresolver/test.cc	Fri Apr  8 02:49:53 2005
@@ -456,6 +456,8 @@
 			const vector<dummy_dep *>::const_iterator &_realend)
       :realiter(_realiter), realend(_realend)
     {
+      while(realiter!=realend && !(*realiter)->broken())
+	++realiter;
     }
 
     bool operator==(const broken_dep_iterator &other) const