pkgcore.ebuild.domain module

gentoo configuration domain

class pkgcore.ebuild.domain.domain(profile, repos, vdb, root='/', prefix='/', config_dir='/etc/portage', **settings)[source]

Bases: domain

KV

The version of the running kernel.

add_repo(path, config, configure=False, **kwargs)[source]

Add an external repo to the domain.

property all_binary_repos

alias to binary_repos.combined

property all_binary_repos_raw

alias to binary_repos_raw.combined

property all_binary_repos_unfiltered

alias to binary_repos_unfiltered.combined

property all_ebuild_repos

alias to ebuild_repos.combined

property all_ebuild_repos_raw

alias to ebuild_repos_raw.combined

property all_ebuild_repos_unfiltered

alias to ebuild_repos_unfiltered.combined

property all_installed_repos

alias to installed_repos.combined

property all_installed_repos_raw

alias to installed_repos_raw.combined

property all_repos

alias to repos.combined

property all_repos_raw

alias to repos_raw.combined

property all_source_repos

alias to source_repos.combined

property all_source_repos_raw

alias to source_repos_raw.combined

property all_unfiltered_repos

alias to unfiltered_repos.combined

property arch
bashrcs
binary_repos

Group of all binary repos bound with configuration data.

binary_repos_raw

Group of all binary repos without filtering.

binary_repos_unfiltered

Group of all binary repos without package filtering.

property distdir
ebuild_repos

Group of all ebuild repos bound with configuration data.

ebuild_repos_raw

Group of all ebuild repos without filtering.

ebuild_repos_unfiltered

Group of all ebuild repos without package filtering.

enabled_use
features
filter_repo(repo, pkg_masks=None, pkg_unmasks=None, pkg_filters=None, pkg_accept_keywords=None, pkg_keywords=None, profile=True)[source]

Filter a configured repo.

find_repo(path, config, configure=False)[source]

Find and add an external repo to the domain given a path.

forced_use
get_package_bashrcs(pkg)[source]
get_package_domain(pkg)[source]

Get domain object with altered settings from matching package.env entries.

get_package_use_unconfigured(pkg, for_metadata=True)[source]

Determine use flags for a given package.

Roughly, this should result in the following, evaluated l->r: non USE_EXPAND; profiles, pkg iuse, global configuration, package.use configuration, commandline? stack profiles + pkg iuse; split it into use and use_expanded use; do global configuration + package.use configuration overriding of non-use_expand use if global configuration has a setting for use_expand.

Args:

pkg: package object for_metadata (bool): if True, we’re doing use flag retrieval for

metadata generation; otherwise, we’re just requesting the raw use flags

Returns:

Three groups of use flags for the package in the following order: immutable flags, enabled flags, and disabled flags.

get_settings_envvar(key: str, default=None)[source]
installed_repos

Group of configured, installed package repos.

installed_repos_raw

Group of installed repos without filtering.

pkg_accept_keywords

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

pkg_env

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

pkg_keywords

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

pkg_licenses

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

pkg_masks

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

pkg_unmasks

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

pkg_use

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>
property pm_tmpdir

Temporary directory for the package manager.

property repo_configs

All defined repo configs.

repos

Group of all repos.

repos_raw

Group of all repos without filtering.

settings
source_repos

Group of configured, filtered package repos.

source_repos_raw

Group of package repos without filtering.

property stable_arch
stable_forced_use
system_profile

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

tmpdir

Temporary directory for the system.

Uses PORTAGE_TMPDIR setting and falls back to using the system’s TMPDIR if unset.

unfiltered_repos

Group of all configured repos without filtering.

property unstable_arch
use
use_expand_re