On Fri, Nov 09, 2007 at 03:27:18PM +0100, Klaus Kaempf wrote:
* Martin Vidner
[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...
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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org