Mailinglist Archive: zypp-devel (148 mails)
| < Previous | Next > |
Re: [zypp-devel] ignore with solver
- From: josef reidiner <jreidinger@xxxxxxx>
- Date: Tue, 18 Mar 2008 20:40:06 +0100
- Message-id: <47E01A96.1050102@xxxxxxx>
Michael Andres napsal(a):
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
On Tue, Mar 18, Josef Reidinger wrote:Yes, you are right. Unrolling package that installed before failing one can be really horrible.
For programmers that uses libzypp it mean, that they must (if support
this action in callback) catch from commit call exception, disable this
package instalation for solver, rerun solver and try again commit (of
course with any user responses if really want new plan or if not
possible install without this package then some as do standard).
Something like this is easily doable once we separate download and install.
Downloading packages into a chache we can easily stop at any time (after the first error, collecting all errors).
We can handle these errors by disabling packages as well as complete repositories. We can even refresh or change repositories.
But once we are in commit (actually installing packages) we have to be carefull. The system might be in an inconsistent state and if we don't have enough system to rescan the rpm database and recreate the solv file, we are stuck. I somewhat dislike to suggest that it's save and easy to abort the running transaction and try soemthing else.
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |