[Yum-devel] clean up sooner

seth vidal skvidal at linux.duke.edu
Tue Feb 28 03:40:16 UTC 2006


> Attached is a first stab at a transaction logger that writes to an XML
> file.  So far, I've only implemented the writing portion.  I tried to
> set it up so that using a sqlite backend is just a simple matter of
> extending the TransactionLogger base class.  Does the API look
> reasonable?  Is this approach pretty much on target?

sorta.

why not just add the transaction logger as a method in
transactioninfo.TransactionData?

then writing out the pre-transaction xml could just be a single call to
self.tsInfo.doMagic() or something

and each removal could be the same way.

then a lot of the code in cli.py could go away, couldn't it?

-sv





More information about the Yum-devel mailing list