pkgcheck.addons.profiles module¶
Profile specific support and addon.
- class pkgcheck.addons.profiles.ProfileAddon(*args, arches_addon)[source]¶
Bases:
CachedAddon
Addon supporting ebuild repository profiles.
- cache = CacheData(type='profiles', file='profiles.pickle', version=2)¶
- get(key, default=None)[source]¶
Return profiles matching a given keyword with a fallback if none exist.
- classmethod mangle_argparser(parser)[source]¶
Add extra options and/or groups to the argparser.
This hook is always triggered, even if the checker is not activated (because it runs before the commandline is parsed).
- Parameters:
parser – an C{argparse.ArgumentParser} instance.
- non_profile_dirs = frozenset({'desc', 'updates'})¶
- profile_data¶
Mapping of profile age and file sets used to check cache viability.
- required_addons = (<class 'pkgcheck.addons.ArchesAddon'>,)¶
- class pkgcheck.addons.profiles.ProfileData(repo, profile_name, key, provides, vfilter, iuse_effective, use, pkg_use, masked_use, forced_use, lookup_cache, insoluble, status, deprecated)[source]¶
Bases:
object
- class pkgcheck.addons.profiles.ProfileNode(*a, **kw)[source]¶
Bases:
ProfileNode
Re-inherited to disable instance caching.
- class pkgcheck.addons.profiles.ProfilesArgs(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
Bases:
CommaSeparatedNegations
Parse profiles args for the ProfileAddon.