On Wed, 2007-09-12 at 16:38 -0400, Jeremy Katz wrote:
> With the new transaction handling stuff, we can actually start to get to
> where grabbing the output of scriptlets is pretty doable so that it can
> be more easily consumed by tools sitting on top of yum.  
> 
> anaconda has been redirecting the bits to a file roughly forever (and
> thus, that's the API that rpm exposes).  So we can use a pipe with only
> minimal pain.  This adds a new scriptout() method that callbacks can
> implement to get the output on a per-package basis.  I've made it so the
> command-line can have the same behavior it's always had.  Graphical
> callers can then grab to show the errors later.
> 
> Thoughts?
> 

Barring the piece you already mentioned removing (the del(self.base.ts))
it all looks good and reasonably contained. If we get a nicer interface
out of rpm we should be able to fix it up to use that instead w/o
disturbing the public interfaces to the transaction callback.

I'd say commit it.

-sv


_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to