[Aptitude-devel] r3182 - in branches/aptitude-0.3/aptitude: . src/cmdline

Daniel Burrows dburrows@costa.debian.org
Thu, 28 Apr 2005 22:21:42 +0000


Author: dburrows
Date: Thu Apr 28 22:21:39 2005
New Revision: 3182

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/cmdline/cmdline_resolver.cc
Log:
Fix a silly infinite loop bug.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Thu Apr 28 22:21:39 2005
@@ -1,5 +1,9 @@
 2005-04-28  Daniel Burrows  <dburrows@debian.org>
 
+	* src/cmdline/cmdline_resolver.cc:
+
+	  Fix a very stupid infinite loop bug.
+
 	* src/generic/problemresolver/problemresolver.h:
 
 	  Ignore any solution that's a subset of another solution.

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	Thu Apr 28 22:21:39 2005
@@ -59,7 +59,7 @@
 	  pkgset &S=*sets[i];
 
 	  for(pkgset::const_iterator p=S.begin();
-	      p!=S.end(); ++i)
+	      p!=S.end(); ++p)
 	    {
 	      pkgDepCache::StateCache &state=(*apt_cache_file)[*p];
 	      pkgCache::VerIterator instver=state.InstVerIter(*apt_cache_file);