Package yum :: Module rpmtrans :: Class RPMBaseCallback
[hide private]
[frames] | no frames]

Class RPMBaseCallback

source code


Base class for a RPMTransaction display callback class

Instance Methods [hide private]
 
__init__(self) source code
 
event(self, package, action, te_current, te_total, ts_current, ts_total) source code
 
scriptout(self, package, msgs)
package is the package.
source code
 
errorlog(self, msg) source code
 
filelog(self, package, action) source code
Method Details [hide private]

event(self, package, action, te_current, te_total, ts_current, ts_total)

source code 
Parameters:
  • package - A yum package object or simple string of a package name
  • action - A yum.constant transaction set state or in the obscure rpm repackage case it could be the string 'repackaging'
  • te_current - Current number of bytes processed in the transaction element being processed
  • te_total - Total number of bytes in the transaction element being processed
  • ts_current - number of processes completed in whole transaction
  • ts_total - total number of processes in the transaction.

scriptout(self, package, msgs)

source code 

package is the package. msgs is the messages that were output (if any).