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

Daniel Burrows dburrows at costa.debian.org
Sat Sep 24 16:36:17 UTC 2005


Author: dburrows
Date: Sat Sep 24 16:36:14 2005
New Revision: 4235

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h
Log:
Fix a compilation error due to inappropriately const methods in the resolver.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Sep 24 16:36:14 2005
@@ -1,5 +1,10 @@
 2005-09-24  Daniel Burrows  <dburrows at debian.org>
 
+	* src/generic/problemresolver/problemresolver.h:
+
+	  Doh, of course the MUTATORS for the new structure shouldn't be
+	  constant!
+
 	* src/generic/resolver_manager.cc, src/generic/resolver_manager.h:
 
 	  Expose the approved_broken stuff from the manager.

Modified: branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h	(original)
+++ branches/aptitude-0.3/aptitude/src/generic/problemresolver/problemresolver.h	Sat Sep 24 16:36:14 2005
@@ -2199,7 +2199,7 @@
   }
 
   /** Approve the breaking of the given dependency. */
-  void approve_break(const dep &d, undo_group *undo = NULL) const
+  void approve_break(const dep &d, undo_group *undo = NULL)
   {
     std::pair<typename std::set<dep>::const_iterator, bool>
       insert_result = user_approved_broken.insert(d);
@@ -2214,7 +2214,7 @@
   }
 
   /** Cancel the required breaking of the given dependency. */
-  void unapprove_break(const dep &d, undo_group *undo = NULL) const
+  void unapprove_break(const dep &d, undo_group *undo = NULL)
   {
     typename std::set<dep>::size_type erased_count
       = user_approved_broken.erase(d);



More information about the Aptitude-svn-commit mailing list