pkgcore.ebuild.portage_conf module¶
make.conf translator.
Converts portage config files into pkgcore.config
form.
- class pkgcore.ebuild.portage_conf.PortageConfig(location=None, profile_override=None, **kwargs)[source]¶
Bases:
DictMixin
Support for portage’s config file layout.
- static load_make_conf(vars_dict, path, allow_sourcing=False, required=True, allow_recurse=True, incrementals=False)[source]¶
parse make.conf files
- Args:
vars_dict (dict): dictionary to add parsed variables to path (str): path to the make.conf which can be a regular file or
directory, if a directory is passed all the non-hidden files within that directory are parsed in alphabetical order.
- load_repos_conf() tuple[dict, dict] [source]¶
parse and return repos.conf content, tracing the default and the fallback location
- classmethod parse_repos_conf_path(path: str)[source]¶
parse repos.conf files from a given entrypoint
- Args:
- path (str): path to the repos.conf which can be a regular file or
directory, if a directory is passed all the non-hidden files within that directory are parsed in alphabetical order.
- Returns:
dict: global repo settings dict: repo settings
- pkgcore.ebuild.portage_conf.SecurityUpgradesViaProfile(ebuild_repo, vdb, profile)[source]¶
generate a GLSA vuln. pkgset limited by profile
- Args:
ebuild_repo (
pkgcore.ebuild.repository.UnconfiguredTree
): target repo vdb (pkgcore.repository.prototype.tree
): livefs profile (pkgcore.ebuild.profiles
): target profile- Returns:
pkgset of relevant security upgrades