pkgcore.restrictions.packages module

restriction classes designed for package level matching

class pkgcore.restrictions.packages.Conditional(*a, **kw)[source]

Bases: PackageRestriction

Base object representing a conditional package restriction.

Used to control whether a payload of restrictions are accessible or not.

conditional = True
evaluate_conditionals(parent_cls, parent_seq, enabled, tristate_locked=None)[source]
payload
class pkgcore.restrictions.packages.KeyedAndRestriction(*a, **kw)[source]

Bases: AndRestriction

type = 'package'
class pkgcore.restrictions.packages.PackageRestriction(*a, **kw)[source]

Bases: base

Package data restriction.

property attr
property attrs
conditional = False
force_False(pkg)[source]
force_True(pkg)[source]
ignore_missing
match(pkg)[source]
negate
restriction
subtype = 'values'
type = 'package'
class pkgcore.restrictions.packages.PackageRestrictionMulti(*a, **kw)[source]

Bases: PackageRestriction

attr = None
property attrs
force_False(pkg)[source]
force_True(pkg)[source]