Mailinglist Archive: zypp-devel (78 mails)

< Previous Next >
Re: [zypp-devel] Sat-Solver policy engine
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Fri, 9 Nov 2007 15:42:12 +0100
  • Message-id: <20071109144212.GD21798@xxxxxxxxxxxxxxxx>
On Fri, Nov 09, 2007 at 03:27:18PM +0100, Klaus Kaempf wrote:
* Martin Vidner <mvidner@xxxxxxx> [Nov 09. 2007 15:12]:
On Fri, Nov 09, 2007 at 02:20:27PM +0100, Klaus Kaempf wrote:
as sat-solver/doc/README.policy

http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/doc/README.policy?view=markup

anyway, beware of overengineering.

You're invited to help in this regard ;-)

OK...
Here's how I see it in order of increasing complexity:

A) No policies.

Just hardcode it in the solver.

B) No interface.

Code it in the solver, but parametrize the decisions by
/etc/zypp/zypp.conf:
solver.prefer_arch_over_version = false
solver.downgrade_automatic = false
solver.downgrade_user = true (?)
solver.uninstall
solver.vendor_change

C) Interface.

Like (B), but separate the decision code from the solver.
I see a single interface point now:

policy->get_boolean("prefer_arch_over_version")

D) Scriptable Pluggable Chainable whatever

--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >