Main output class for the yum command line.
|
|
|
|
|
failureReport(self,
errobj)
failure output for failovers from urlgrabber |
source code
|
|
|
simpleProgressBar(self,
current,
total,
name=None) |
source code
|
|
|
|
|
_sub_highlight(self,
haystack,
highlight,
needles,
**kwds) |
source code
|
|
|
calcColumns(self,
data,
columns=None,
remainder_column=0,
total_width=None,
indent='
' )
Dynamically calculate the width of the fields in the data, data is of
the format [column-number][field_length] = rows. |
source code
|
|
|
|
|
fmtColumns(self,
columns,
msg=u'
' ,
end=u'
' )
Return a string for columns of data, which can overflow. |
source code
|
|
|
simpleList(self,
pkg,
ui_overflow=False,
indent='
' ,
highlight=False,
columns=None)
Simple to use function to print a pkg as a line. |
source code
|
|
|
simpleEnvraList(self,
pkg,
ui_overflow=False,
indent='
' ,
highlight=False,
columns=None)
Simple to use function to print a pkg as a line, with the pkg itself
in envra format so it can be pased to list/install/etc. |
source code
|
|
|
fmtKeyValFill(self,
key,
val)
Return a key value pair in the common two column output format. |
source code
|
|
|
|
|
_enc(self,
s)
Get the translated version from specspo and ensure that it's actually
encoded in UTF-8. |
source code
|
|
|
|
|
updatesObsoletesList(self,
uotup,
changetype,
columns=None)
takes an updates or obsoletes tuple of pkgobjects and returns a
simple printed string of the output and a string explaining the
relationship between the tuple members |
source code
|
|
|
listPkgs(self,
lst,
description,
outputType,
highlight_na={ } ,
columns=None,
highlight_modes={ } )
outputs based on whatever outputType is. |
source code
|
|
|
userconfirm(self)
gets a yes or no from the user, defaults to No |
source code
|
|
|
|
|
_group_names2aipkgs(self,
pkg_names)
Convert pkg_names to installed pkgs or available pkgs, return value
is a dict on pkg.name returning (apkg, ipkg). |
source code
|
|
|
_calcDataPkgColumns(self,
data,
pkg_names,
pkg_names2pkgs,
indent=' ' ) |
source code
|
|
|
_displayPkgsFromNames(self,
pkg_names,
verbose,
pkg_names2pkgs,
indent=' ' ,
columns=None) |
source code
|
|
|
|
|
depListOutput(self,
results)
take a list of findDeps results and 'pretty print' the output |
source code
|
|
|
format_number(self,
number,
SI=0,
space=' ' )
Turn numbers into human-readable metric-like numbers |
source code
|
|
|
matchcallback(self,
po,
values,
matchfor=None,
verbose=None,
highlight=None)
Output search/provides type callback matches. |
source code
|
|
|
matchcallback_verbose(self,
po,
values,
matchfor=None) |
source code
|
|
|
reportDownloadSize(self,
packages,
installonly=False)
Report the total download size for a set of packages |
source code
|
|
|
listTransaction(self)
returns a string rep of the transaction in an easy-to-read way. |
source code
|
|
|
|
|
setupProgressCallbacks(self)
sets up the progress callbacks and various output bars based on debug
level |
source code
|
|
|
|
|
|
|
|
|
download_callback_total_cb(self,
remote_pkgs,
remote_size,
download_start_timestamp) |
source code
|
|
|
|
|
|
|
|
|
historyListCmd(self,
extcmds)
Shows the user a list of data about the history. |
source code
|
|
|
|
|
|
|
|
|
|
|
historyInfoCmdPkgsAltered(self,
old,
pats=[ ] ) |
source code
|
|
|
|