pkgcheck.addons package

Submodules

Module contents

Addon functionality shared by multiple checkers.

class pkgcheck.addons.ArchesAddon(options, **kwargs)[source]

Bases: Addon

Addon supporting ebuild repository architectures.

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.

class pkgcheck.addons.ArchesArgs(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]

Bases: CommaSeparatedNegations

Parse arches args for the ArchesAddon.

class pkgcheck.addons.KeywordsAddon(*args)[source]

Bases: Addon

Addon supporting various keywords sets.

class pkgcheck.addons.NetAddon(options, **kwargs)[source]

Bases: Addon

Addon supporting network functionality.

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.

property session
class pkgcheck.addons.StableArchesAddon(options, **kwargs)[source]

Bases: Addon

Addon supporting stable architectures.

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.

required_addons = (<class 'pkgcheck.addons.ArchesAddon'>,)
class pkgcheck.addons.UnstatedIuse(attr, flags, profile=None, num_profiles=None, **kwargs)[source]

Bases: VersionResult, Error

Package is reliant on conditionals that aren’t in IUSE.

property desc

Result description.

name = 'UnstatedIuse'
class pkgcheck.addons.UseAddon(*args)[source]

Bases: Addon

Addon supporting USE flag functionality.

allowed_iuse(pkg)[source]
static fake_use_validate(klasses, pkg, seq, attr=None)[source]
get_filter(attr=None)[source]
use_validate(klasses, pkg, seq, attr=None)[source]
pkgcheck.addons.init_addon(cls, options, addons_map=None, **kwargs)[source]

Initialize a given addon.