[Aptitude-svn-commit] r3621 - in branches/aptitude-0.3/aptitude: . src/generic

Daniel Burrows dburrows@costa.debian.org
Tue Jul 5 17:49:21 UTC 2005


Author: dburrows
Date: Tue Jul  5 17:49:18 2005
New Revision: 3621

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h
Log:
Fix a rather silly SIGABRT.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Jul  5 17:49:18 2005
@@ -1,5 +1,10 @@
 2005-07-05  Daniel Burrows  <dburrows@debian.org>
 
+	* src/generic/aptitude_resolver.h:
+
+	  Don't abort when trying to dump a package that has only one
+	  version.  (doh, 0 is a valid index!)
+
 	* doc/en/aptitude.xml:
 
 	  Fix several typos pointed out by Miroslav Kure.

Modified: branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h	Tue Jul  5 17:49:18 2005
@@ -175,7 +175,7 @@
 
 	// if not, we have a "version" of this package that's not in
 	// its list of versions!
-	assert(idx>0);
+	assert(idx>=0);
 
 	if(count>1)
 	  {




More information about the Aptitude-svn-commit mailing list