yum.transactioninfo

Classes and functions for manipulating a transaction to be passed to rpm.

GetProvReqOnlyPackageSack

class yum.transactioninfo.GetProvReqOnlyPackageSack(need_files=False)

Bases: yum.packageSack.PackageSack

TransactionData

class yum.transactioninfo.TransactionData

Data Structure designed to hold information on a yum Transaction Set

add(txmember)

add a package to the transaction

addDowngrade(po, oldpo)

adds a package as an downgrade takes a packages object and returns a pair of TransactionMember Objects

addErase(po)

adds a package as an erasure takes a packages object and returns a TransactionMember Object

addInstall(po)

adds a package as an install but in mode ‘u’ to the ts takes a packages object and returns a TransactionMember Object

addObsoleted(po, obsoleting_po)

adds a package as being obsoleted by another pkg takes a packages object and returns a TransactionMember Object

addObsoleting(po, oldpo)

adds a package as an obsolete over another pkg takes a packages object and returns a TransactionMember Object

addTrueInstall(po)

adds a package as an install takes a packages object and returns a TransactionMember Object

addUpdate(po, oldpo=None)

adds a package as an update takes a packages object and returns a TransactionMember Object

addUpdated(po, updating_po)

adds a package as being updated by another pkg takes a packages object and returns a TransactionMember Object

deselect(pattern)

Remove these packages from the transaction. This is more user orientated than .remove(). Used from kickstart/install -blah.

exists(pkgtup)

tells if the pkg is in the class

findObsoletedByThisMember(txmbr)

addObsoleted() pkgs for anything that this txmbr will obsolete

futureRpmDBVersion()

Return a simple version for the future rpmdb. Works like rpmdb.simpleVersion(main_only=True)[0], but for the state the rpmdb will be in after the transaction.

getMembers(pkgtup=None)

takes an optional package tuple and returns all transaction members matching, no pkgtup means it returns all transaction members

getMode(name=None, arch=None, epoch=None, ver=None, rel=None)

returns the mode of the first match from the transaction set, otherwise, returns None

getNewProvides(name, flag=None, version=(None, None, None))

return dict { packages -> list of matching provides } searches in packages to be installed

getNewRequires(name, flag=None, version=(None, None, None))

return dict { packages -> list of matching provides } searches in packages to be installed

getOldProvides(name, flag=None, version=(None, None, None))

return dict { packages -> list of matching provides } searches in packages already installed and not going to be removed

getOldRequires(name, flag=None, version=(None, None, None))

return dict { packages -> list of matching provides } searches in packages already installed and not going to be removed

getProvides(name, flag=None, version=(None, None, None))

return dict { packages -> list of matching provides }

getRequires(name, flag=None, version=(None, None, None))

return dict { packages -> list of matching provides }

isObsoleted(pkgtup)

true if the pkgtup is marked to be obsoleted

makelists(include_reinstall=False, include_downgrade=False)

returns lists of transaction Member objects based on mode: updated, installed, erased, obsoleted, depupdated, depinstalled deperased

matchNaevr(name=None, arch=None, epoch=None, ver=None, rel=None)

returns the list of packages matching the args above

remove(pkgtup)

remove a package from the transaction

ConditionalTransactionData

class yum.transactioninfo.ConditionalTransactionData

Bases: yum.transactioninfo.TransactionData

A transaction data implementing conditional package addition

SortableTransactionData

class yum.transactioninfo.SortableTransactionData

Bases: yum.transactioninfo.TransactionData

A transaction data implementing topological sort on it’s members

TransactionMember

class yum.transactioninfo.TransactionMember(po)

Class to describe a Transaction Member (a pkg to be installed/ updated/erased).

setAsDep(po=None)

sets the transaction member as a dependency and maps the dep into the relationship list attribute

Table Of Contents

Previous topic

yum.sqlutils

Next topic

yum.update_md

This Page