Mailinglist Archive: zypp-devel (148 mails)

< Previous Next >
Re: [zypp-devel] ignore with solver
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Tue, 18 Mar 2008 17:23:11 +0100
  • Message-id: <20080318162311.GA24961@xxxxxxx>
On Tue, Mar 18, Josef Reidinger wrote:

Hi,
due to FATE #303527 I plan add new item to enum Action to
mediaRequestCallback. Behavior of this action is remember package which
fail to download and throw it from libzypp. Program like zypper catch
this exception, say solver that this package don't use and try make new
installation plan without problematic package. Maybe
IgnoreRequestException can be used, due to it's not used anywhere in
zypp (and is userRequest exception).
any ideas or comments?

Nice idea if we use it together with a 'download all packages before
commit' policy.

Also is KEEP_STATE (in ResStatus) good to say solver that it cannot use
this package?

No, KEEP_STATE should (IMO) just prevent the solver from selecting this
because it's recommended. If it's required the solver may choose it. One
should use LOCKED.

The same flow could be used if the user decides not to accept a license.
Question is just whether there are alternatives.

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
References