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

Module history

source code

Classes [hide private]
  YumHistoryPackage
  YumHistoryTransaction
Holder for a history transaction.
  YumHistory
API for accessing the history sqlite data.
Functions [hide private]
 
_setupHistorySearchSQL(patterns=None, ignore_case=False)
Setup need_full and patterns for _yieldSQLDataList, also see if we can get away with just using searchNames().
source code
Variables [hide private]
  _history_dir = '/var/lib/yum/history'
  _stcode2sttxt = {10: 'Update', 20: 'Install', 30: 'True-Instal...
  _sttxt2stcode = {'Dep-Install': 20, 'Downgrade': 20, 'Downgrad...
  _FULL_PARSE_QUERY_BEG = '\nSELECT pkgtupid,name,epoch,version,...
  __package__ = 'yum'
Variables Details [hide private]

_stcode2sttxt

Value:
{10: 'Update',
 20: 'Install',
 30: 'True-Install',
 40: 'Erase',
 50: 'Obsoleted',
 60: 'Obsoleting',
 90: 'Updated'}

_sttxt2stcode

Value:
{'Dep-Install': 20,
 'Downgrade': 20,
 'Downgraded': 20,
 'Erase': 40,
 'Install': 20,
 'Obsoleted': 50,
 'Obsoleting': 60,
 'Reinstall': 20,
...

_FULL_PARSE_QUERY_BEG

Value:
'''
SELECT pkgtupid,name,epoch,version,release,arch,
  name || "." || arch AS sql_nameArch,
  name || "-" || version || "-" || release || "." || arch AS sql_nameV\
erRelArch,
  name || "-" || version AS sql_nameVer,
  name || "-" || version || "-" || release AS sql_nameVerRel,
  epoch || ":" || name || "-" || version || "-" || release || "." || a\
...