[Yum-devel] condensing error callbacks

seth vidal skvidal at linux.duke.edu
Wed May 24 05:19:21 UTC 2006

On Tue, 2006-05-23 at 14:38 -0400, Chris Lumens wrote:
> Paul and I have been working on making the package error handling in
> anaconda suck less.  In the middle of all this, we discovered that yum
> does not support passing a failure callback to a mirror object.  The
> result of this is that an error grabbing a file with mgclass as set up
> by setupGrab causes a RepoError to be raised, instead of the registered
> urlgrabber error callback getting used.
> The solution is to just pass a failure_callback keyword argument to
> mgclass, as it is already setup to deal with this argument.  We also
> added methods to set the callback that should be used in the mirror case
> on Repository and YumRepo.
> Oh also, I removed some extraneous apostrophes as reading that causes me
> to stop, re-read it, and wonder exactly what the sentence is supposed to
> mean.

that all looks sane to me.

Tell paul to commit it.

More information about the Yum-devel mailing list