pkgcore.ebuild.portageq module

class pkgcore.ebuild.portageq.BaseCommand[source]

Bases: ArgparseCommand

arg_spec = ()
bind_to_parser(parser, compat=False)[source]
has_optional_args = False
classmethod make_command(arg_spec='', requires_root=True, bind=None, root_default=None, name=None, **kwds)[source]
required_arg_count = 0
class pkgcore.ebuild.portageq.best_version[source]

Bases: BaseCommand

Return the maximum visible version for a given atom.

arg_spec = ('atom',)
static function(options, out, err)

Return the maximum visible version for a given atom.

requires_root = True
pkgcore.ebuild.portageq.bind_parser(parser, compat=False, name='portageq')[source]
pkgcore.ebuild.portageq.default_portageq_args(parser)[source]
class pkgcore.ebuild.portageq.env_var[source]

Bases: BaseCommand

return configuration defined variables.

arg_spec = ('variable+',)
static function(options, out, err)

return configuration defined variables.

requires_root = True
pkgcore.ebuild.portageq.find_profile_paths_by_repo_id(config, repo_id, fullpath=False)[source]
pkgcore.ebuild.portageq.get_atom_kls(value)[source]
class pkgcore.ebuild.portageq.get_profiles[source]

Bases: BaseCommand

arg_spec = ('repo_id',)
static function(options, out, err)
requires_root = True
class pkgcore.ebuild.portageq.get_repo_news_path[source]

Bases: BaseCommand

arg_spec = ('repo_id',)
static function(options, out, err)
requires_root = True
class pkgcore.ebuild.portageq.get_repo_path[source]

Bases: BaseCommand

arg_spec = ('repo_id',)
static function(options, out, err)
requires_root = True
class pkgcore.ebuild.portageq.get_repos[source]

Bases: BaseCommand

arg_spec = ()
static function(options, out, err)
requires_root = True
class pkgcore.ebuild.portageq.has_version[source]

Bases: BaseCommand

Return 0 if an atom is merged, 1 if not.

arg_spec = ('atom',)
static function(options, out, err)

Return 0 if an atom is merged, 1 if not.

requires_root = True
pkgcore.ebuild.portageq.make_atom(value)[source]
class pkgcore.ebuild.portageq.mass_best_version[source]

Bases: BaseCommand

multiple best_version calls.

arg_spec = ('atom+',)
static function(options, out, err)

multiple best_version calls.

requires_root = True
class pkgcore.ebuild.portageq.match[source]

Bases: BaseCommand

shorthand for pquery –installed

arg_spec = ('atom',)
static function(options, out, err)

shorthand for pquery –installed

requires_root = True
pkgcore.ebuild.portageq.portageq_envvar[source]

alias of mycommand

pkgcore.ebuild.portageq.portageq_envvar2[source]

alias of mycommand

pkgcore.ebuild.portageq.str_pkg(pkg)[source]