Transaction Set clean does not actually clean

Mitko Haralanov <[email protected]> Fri, 7 Dec 2007 11:47:24 -0800
Newsgroups gmane.linux.redhat.rpm.python
Organization QLogic Corporation
Message-ID <[email protected]>
I am having a issue with the clean method of the TransactionSet class
(ts). It doesn't actually seem to clean the transaction set.

I have written a wrapper class around the TransactionSet class to hide
some of the lower level stuff and be a bit more convenient. In my
class, I have methods which open and close the RPM database, so other
users/processes can get the database lock. What is important to note is
that, when closing the database, I don't delete the TransactionSet
instance - I just call the closeDB() method.

Every time, the database is closed, I also call TransactionSet.clean(),
however, in subsequent calls into the TransactionSet instance, I see
that there are left over transactions from previous calls.

I would appreciate it if anyone could tell me how to properly clean the
TransactionSet?

-- 
Mitko Haralanov					 [email protected]
Senior Software Engineer			     650.934.8064
System Interconnect Group		    http://www.qlogic.com

==========================================
The meta-Turing test counts a thing as intelligent if it seeks to
devise and apply Turing tests to objects of its own creation.
		-- Lew Mammel, Jr.