Re: Transaction Set clean does not actually clean

seth vidal <skvidal-rxtnV0ftBwyoClj4AeEUq9i2O/[email protected]> Sat, 08 Dec 2007 02:43:51 -0500
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <1197099831.7714.45.camel@cutter>
On Fri, 2007-12-07 at 15:59 -0800, Mitko Haralanov wrote:
> On Fri, 7 Dec 2007 18:50:33 -0500
> Jeff Johnson <[email protected]> wrote:
> 
> > You certainly could keep your threads happy by wrapping a transaction  
> > set,
> > but discard the underlying ts object to get rid of the attached  
> > elements when
> > a "clean" operation is needed.
> 
> That's it! I can use the wrapper for thread safety, keep the ts
> instance around and intercept the ts.clean() calls.
> 
> I'll see if I can get that working! Thanks for you help, again!


Another option is you could look at the TransactionData class in
yum/transactioninfo.py

We've already represented the things you've talked about above and
rpmUtils/transaction.py covers the TransactionSet abstraction.

-sv