Package yum :: Module transactioninfo :: Class TransactionData
[hide private]
[frames] | no frames]

Class TransactionData

source code


Data Structure designed to hold information on a yum Transaction Set

Instance Methods [hide private]
 
__init__(self) source code
 
__len__(self) source code
 
__iter__(self) source code
 
debugprint(self, msg) source code
 
getMembersWithState(self, pkgtup=None, output_states=None) source code
 
getMembers(self, pkgtup=None)
takes an optional package tuple and returns all transaction members matching, no pkgtup means it returns all transaction members
source code
 
getUnresolvedMembers(self) source code
 
markAsResolved(self, txmbr) source code
 
resetResolved(self, hard=False) source code
 
getMode(self, name=None, arch=None, epoch=None, ver=None, rel=None)
returns the mode of the first match from the transaction set, otherwise, returns None
source code
 
matchNaevr(self, name=None, arch=None, epoch=None, ver=None, rel=None)
returns the list of packages matching the args above
source code
 
_isLocalPackage(self, txmember) source code
 
_allowedMultipleInstalls(self, po)
takes a packageObject, returns 1 or 0 depending on if the package should/can be installed multiple times with different vers like kernels and kernel modules, for example
source code
 
add(self, txmember)
add a package to the transaction
source code
 
remove(self, pkgtup)
remove a package from the transaction
source code
 
exists(self, pkgtup)
tells if the pkg is in the class
source code
 
isObsoleted(self, pkgtup)
true if the pkgtup is marked to be obsoleted
source code
 
makelists(self, include_reinstall=False, include_downgrade=False)
returns lists of transaction Member objects based on mode: updated, installed, erased, obsoleted, depupdated, depinstalled deperased
source code
 
addInstall(self, po)
adds a package as an install but in mode 'u' to the ts takes a packages object and returns a TransactionMember Object
source code
 
addTrueInstall(self, po)
adds a package as an install takes a packages object and returns a TransactionMember Object
source code
 
addErase(self, po)
adds a package as an erasure takes a packages object and returns a TransactionMember Object
source code
 
addUpdate(self, po, oldpo=None)
adds a package as an update takes a packages object and returns a TransactionMember Object
source code
 
addDowngrade(self, po, oldpo)
adds a package as an downgrade takes a packages object and returns a pair of TransactionMember Objects
source code
 
addUpdated(self, po, updating_po)
adds a package as being updated by another pkg takes a packages object and returns a TransactionMember Object
source code
 
addObsoleting(self, po, oldpo)
adds a package as an obsolete over another pkg takes a packages object and returns a TransactionMember Object
source code
 
addObsoleted(self, po, obsoleting_po)
adds a package as being obsoleted by another pkg takes a packages object and returns a TransactionMember Object
source code
 
setDatabases(self, rpmdb, pkgSack) source code
 
getNewProvides(self, name, flag=None, version=(None, None, None))
return dict { packages -> list of matching provides } searches in packages to be installed
source code
 
getOldProvides(self, 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
source code
 
getProvides(self, name, flag=None, version=(None, None, None))
return dict { packages -> list of matching provides }
source code
 
getNewRequires(self, name, flag=None, version=(None, None, None))
return dict { packages -> list of matching provides } searches in packages to be installed
source code
 
getOldRequires(self, 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
source code
 
getRequires(self, name, flag=None, version=(None, None, None))
return dict { packages -> list of matching provides }
source code
 
futureRpmDBVersion(self)
Return a simple version for the future rpmdb.
source code
Method Details [hide private]

futureRpmDBVersion(self)

source code 

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.