Author: schubi2 Date: Thu May 15 15:43:51 2008 New Revision: 10108 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10108&view=rev Log: - added more docu - reset solutions in resolveQueue Modified: trunk/libzypp/zypp/Resolver.h trunk/libzypp/zypp/solver/detail/Resolver.cc Modified: trunk/libzypp/zypp/Resolver.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Resolver.h?rev=10108&r1=10107&r2=10108&view=diff ============================================================================== --- trunk/libzypp/zypp/Resolver.h (original) +++ trunk/libzypp/zypp/Resolver.h Thu May 15 15:43:51 2008 @@ -88,6 +88,12 @@ * need user interaction) and "false" if there were problems. In * the latter case, use problems() and later applySolutions() * below. + * The solution could be that the solver remove/add some entries + * in the task queue. So make a new call of resolveQueue after you + * have applied any solution AND check the parameter "queue" if + * there has been any changes by the solver and adapt these changes + * to e.g. the selectables. + * **/ bool resolveQueue (solver::detail::SolverQueueItemList & queue); Modified: trunk/libzypp/zypp/solver/detail/Resolver.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/solver/detail/Resolver.cc?rev=10108&r1=10107&r2=10108&view=diff ============================================================================== --- trunk/libzypp/zypp/solver/detail/Resolver.cc (original) +++ trunk/libzypp/zypp/solver/detail/Resolver.cc Thu May 15 15:43:51 2008 @@ -328,6 +328,11 @@ queue.push_back(*iter); } } + + // The application has to take care to write these solutions back to e.g. selectables in order + // give the user a chance for changing these decisions again. + _removed_queue_items.clear(); + _added_queue_items.clear(); return _satResolver->resolveQueue(queue, _addWeak); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org