Package yum :: Module history :: Class YumHistory
[hide private]
[frames] | no frames]

Class YumHistory

source code

API for accessing the history sqlite data.

Instance Methods [hide private]
 
__init__(self, root='/', db_path='/var/lib/yum/history') source code
 
__del__(self) source code
 
_get_cursor(self) source code
 
_commit(self) source code
 
close(self) source code
 
_pkgtup2pid(self, pkgtup, checksum=None) source code
 
_apkg2pid(self, po) source code
 
_ipkg2pid(self, po) source code
 
pkg2pid(self, po) source code
 
trans_with_pid(self, pid) source code
 
trans_data_pid_beg(self, pid, state) source code
 
trans_data_pid_end(self, pid, state) source code
 
beg(self, rpmdb_version, using_pkgs, txmbrs) source code
 
_log_errors(self, errors) source code
 
log_scriptlet_output(self, data, msg)
Note that data can be either a real pkg.
source code
 
_load_errors(self, tid) source code
 
_load_output(self, tid) source code
 
end(self, rpmdb_version, return_code, errors=None) source code
 
_old_with_pkgs(self, tid) source code
 
_old_data_pkgs(self, tid) source code
 
old(self, tids=[], limit=None, complete_transactions_only=False)
Return a list of the last transactions, note that this includes partial transactions (ones without an end transaction).
source code
 
last(self, complete_transactions_only=True)
This is the last full transaction.
source code
 
_yieldSQLDataList(self, patterns, fields, ignore_case)
Yields all the package data for the given params.
source code
 
search(self, patterns, ignore_case=True)
Search for history transactions which contain specified packages al.
source code
 
_create_db_file(self)
Create a new history DB file, populating tables etc.
source code
Static Methods [hide private]
 
txmbr2state(txmbr) source code
Method Details [hide private]

log_scriptlet_output(self, data, msg)

source code 

Note that data can be either a real pkg. ... or not.

last(self, complete_transactions_only=True)

source code 

This is the last full transaction. So any incomplete transactions do not count, by default.

search(self, patterns, ignore_case=True)

source code 

Search for history transactions which contain specified packages al. la. "yum list". Returns transaction ids.