pkgcore.ebuild.formatter module¶
pmerge formatting module
- class pkgcore.ebuild.formatter.BasicFormatter(**kwargs)[source]¶
Bases:
Formatter
A basic formatter, intended for scripts
- class pkgcore.ebuild.formatter.CountingFormatter(**kwargs)[source]¶
Bases:
Formatter
Subclass for formatters that count packages
- class pkgcore.ebuild.formatter.Formatter(**kwargs)[source]¶
Bases:
object
Base Formatter class: All formatters should be subclasses of this.
- pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>¶
- class pkgcore.ebuild.formatter.PkgcoreFormatter(**kwargs)[source]¶
Bases:
Formatter
The original pkgcore output
- class pkgcore.ebuild.formatter.PortageFormatter(**kwargs)[source]¶
Bases:
CountingFormatter
Formatter designed to resemble portage output.
- format_use(attr, pkg_iuse, pkg_use, old_pkg_iuse=None, old_pkg_use=None, sorter=<function PortageFormatter.<lambda>>)[source]¶
Write the current selection from a set of flags to a formatter.
- Parameters:
attr (string) – name of the setting
pkg_iuse (set of strings) – all available use flags for the package
pkg_use (set of strings) – enabled use flags for the package
old_pkg_iuse (set of strings) – all available use flags in the previous version
old_pkg_use (set of strings) – enabled use flags in the previous version
- class pkgcore.ebuild.formatter.PortageVerboseFormatter(**kwargs)[source]¶
Bases:
VerboseFormatter
,PortageFormatter
Formatter designed to resemble portage output in verbose mode.