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.

identify_profiles(pkg)[source]
items()[source]

Iterate over all keywords and profiles.

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'>,)
update_cache(force=False)[source]

Update related cache and push updates to disk.

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

identify_use(pkg, known_flags)[source]
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.

static norm_name(repo, s)[source]

Expand status keywords and format paths.