Package _emerge :: Package resolver :: Module output :: Class Display
[hide private]

Class Display

source code

object --+
         |
        Display

Formats and outputs the depgrah supplied it for merge/re-merge, etc.

__call__()

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_blockers(self, blocker)
Adds colorized strings to self.print_msg and self.blockers
source code
 
include_mask_str(self) source code
 
gen_mask_str(self, pkg) source code
 
empty_space_in_brackets(self) source code
 
map_to_use_expand(self, myvals, forced_flags=False, remove_hidden=True)
Map use expand variables
source code
 
_display_use(self, pkg, pkg_info)
USE flag display
source code
 
verbose_size(self, pkg, repoadd_set, pkg_info)
Determines the size of the downloads required
source code
 
convert_myoldbest(self, pkg, pkg_info)
converts and colorizes a version list to a string
source code
 
_append_slot(self, pkg_str, pkg, pkg_info)
Potentially appends slot and subslot to package string.
source code
 
_append_repository(self, pkg_str, pkg, pkg_info)
Potentially appends repository to package string.
source code
 
_set_non_root_columns(self, pkg, pkg_info)
sets the indent level and formats the output
source code
 
_set_root_columns(self, pkg, pkg_info)
sets the indent level and formats the output
source code
 
_set_no_columns(self, pkg, pkg_info)
prints pkg info without column indentation.
source code
 
print_messages(self, show_repos)
Performs the actual output printing of the pre-formatted messages
source code
 
print_blockers(self)
Performs the actual output printing of the pre-formatted blocker messages
source code
 
print_verbose(self, show_repos)
Prints the verbose output to std_out
source code
 
print_changelog(self)
Prints the changelog text to std_out
source code
 
get_display_list(self, mylist)
Determines the display list to process
source code
 
set_pkg_info(self, pkg, ordered)
Sets various pkg_info dictionary variables
source code
 
do_changelog(self, pkg, pkg_info)
Processes and adds the changelog text to the master text for output
source code
 
check_system_world(self, pkg)
Checks for any occurances of the package in the system or world sets
source code
 
_get_installed_best(self, pkg, pkg_info)
we need to use "--emptrytree" testing here rather than "empty" param testing because "empty" param is used for -u, where you still *do* want to see when something is being upgraded.
source code
 
__call__(self, depgraph, mylist, favorites=None, verbosity=None)
The main operation to format and display the resolver output.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
pkgprint(pkg_str, pkg_info)
Colorizes a string acording to pkg_info settings
source code
 
get_ver_str(pkg)
Obtains the version string
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • depgraph - list
  • favorites - defaults to []
  • verbosity - integer, defaults to None
Overrides: object.__init__
(inherited documentation)

_blockers(self, blocker)

source code 
Adds colorized strings to
self.print_msg and self.blockers

@param blocker: _emerge.Blocker.Blocker instance
@rtype: bool
Modifies class globals: self.blocker_style, self.resolved,
        self.print_msg

gen_mask_str(self, pkg)

source code 
Parameters:
  • pkg - _emerge.Package.Package instance

map_to_use_expand(self, myvals, forced_flags=False, remove_hidden=True)

source code 
Map use expand variables

@param myvals: list
@param forced_flags: bool
@param remove_hidden: bool
@rtype ret dictionary
        or ret dict, forced dict.

_display_use(self, pkg, pkg_info)

source code 
USE flag display

@param pkg: _emerge.Package.Package instance
@param pkg_info: PkgInfo instance
Modifies self.use_expand_hidden, self.use_expand, self.verboseadd,
        self.forced_flags

pkgprint(pkg_str, pkg_info)
Static Method

source code 

Colorizes a string acording to pkg_info settings

Parameters:
  • pkg_str - string
  • pkg_info - dictionary @rtype colorized string

verbose_size(self, pkg, repoadd_set, pkg_info)

source code 
Determines the size of the downloads required

@param pkg: _emerge.Package.Package instance
@param repoadd_set: set of repos to add
@param pkg_info: dictionary
Modifies class globals: self.myfetchlist, self.counters.totalsize,
        self.verboseadd, repoadd_set.

convert_myoldbest(self, pkg, pkg_info)

source code 

converts and colorizes a version list to a string

Parameters:
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionary @rtype string.

_append_slot(self, pkg_str, pkg, pkg_info)

source code 

Potentially appends slot and subslot to package string.

Parameters:
  • pkg_str - string
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionary @rtype string

_append_repository(self, pkg_str, pkg, pkg_info)

source code 

Potentially appends repository to package string.

Parameters:
  • pkg_str - string
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionary @rtype string

_set_non_root_columns(self, pkg, pkg_info)

source code 

sets the indent level and formats the output

Parameters:
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionary @rtype string

_set_root_columns(self, pkg, pkg_info)

source code 

sets the indent level and formats the output

Parameters:
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionary @rtype string Modifies self.verboseadd

_set_no_columns(self, pkg, pkg_info)

source code 

prints pkg info without column indentation.

Parameters:
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionary @rtype the updated addl

print_messages(self, show_repos)

source code 

Performs the actual output printing of the pre-formatted messages

Parameters:
  • show_repos - bool.

print_verbose(self, show_repos)

source code 

Prints the verbose output to std_out

Parameters:
  • show_repos - bool.

get_display_list(self, mylist)

source code 

Determines the display list to process

@param mylist @rtype list Modifies self.counters.blocks, self.counters.blocks_satisfied,

set_pkg_info(self, pkg, ordered)

source code 
Sets various pkg_info dictionary variables

@param pkg: _emerge.Package.Package instance
@param ordered: bool
@rtype pkg_info dictionary
Modifies self.counters.restrict_fetch,
        self.counters.restrict_fetch_satisfied

do_changelog(self, pkg, pkg_info)

source code 

Processes and adds the changelog text to the master text for output

Parameters:
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionay Modifies self.changelogs

check_system_world(self, pkg)

source code 

Checks for any occurances of the package in the system or world sets

Parameters:
  • pkg - _emerge.Package.Package instance @rtype system and world booleans

get_ver_str(pkg)
Static Method

source code 

Obtains the version string

Parameters:
  • pkg - _emerge.Package.Package instance @rtype string

_get_installed_best(self, pkg, pkg_info)

source code 

we need to use "--emptrytree" testing here rather than "empty" param testing because "empty" param is used for -u, where you still *do* want to see when something is being upgraded.

Parameters:
  • pkg - _emerge.Package.Package instance
  • pkg_info - dictionay

__call__(self, depgraph, mylist, favorites=None, verbosity=None)
(Call operator)

source code 
The main operation to format and display the resolver output.

@param depgraph: dependency grah
@param mylist: list of packages being processed
@param favorites: list, defaults to []
@param verbosity: verbose level, defaults to None
Modifies self.conf, self.myfetchlist, self.portdb, self.vardb,
        self.pkgsettings, self.verboseadd, self.oldlp, self.newlp,
        self.print_msg,