[Yum-devel] Qs regarding YUM code

James Antill james at fedoraproject.org
Thu Apr 23 13:43:39 UTC 2009


On Wed, 2009-04-22 at 17:36 -0700, Creative Innovative wrote:
>  
> Qs2) Also I noticed that in rpmtrans.py, prior to running transaction,
> the transaction elements, are dumped to a transaction file
> under /var/lib/yum.
> I was exploring this further, to see if I can leverage for one of the
> work projects that I have been looking into. The idea is to write a
> program in C, which takes the latest yum transaction file, parse it
> and for each entry, uses RPM's C apis to add transaction elements, and
> then calls rpmtsRun() to run the transaction.
> Based on preliminary prototyping it seems to work fine.
> If you have any further inputs/suggestions/concerns please let me 
> know.

 Note that in normal usage this file is deleted after the transaction
completes (it's there so that yum-complete-transaction knows what
happened when the transaction fails).

-- 
James Antill <james at fedoraproject.org>
Fedora


More information about the Yum-devel mailing list