Transactions

Transactions permit easy manipulations of several packages at a time.

class Transaction

A transaciton object permits easy manipulations of several packages at a time, a transaction can be initiated with a type and some flags.

prepare()

Preprare a transaction

commit()

Commit a transaction

interrupt()

Interrupt the transaction

release()

Release the transaction

add_pkg()
Loads package information from a tarball
Parameters:package (Package) – append a package addition to transaction
Returns:None
remove_pkg()
Loads package information from a tarball
Parameters:package (Package) – append a package addition to transaction
Returns:None
sysupgrade()
Set the transaction to perform a system upgrade
Parameters:downgrade (bool) – downgrade package if True
Returns:None