pkgcore.ebuild.triggers module

gentoo/ebuild specific triggers

class pkgcore.ebuild.triggers.CollisionProtect(extra_protects=(), extra_disables=(), extra_ignores=())[source]

Bases: FileCollision

collision(colliding)[source]

Handle livefs file collisions.

Must be overridden in derived trigger classes.

class pkgcore.ebuild.triggers.ConfigProtectInstall(extra_protects=(), extra_disables=())[source]

Bases: base

priority = 100
register(engine)[source]

register with a MergeEngine

required_csets = ('install_existing', 'install')
trigger(engine, existing_cset, install_cset)[source]
class pkgcore.ebuild.triggers.ConfigProtectUninstall[source]

Bases: base

required_csets = ('uninstall_existing', 'uninstall')
trigger(engine, existing_cset, uninstall_cset)[source]

Bases: base

required_csets = ('new_cset',)
trigger(engine, cset)[source]
class pkgcore.ebuild.triggers.GenerateTriggers(domain, settings)[source]

Bases: object

class pkgcore.ebuild.triggers.InfoRegen[source]

Bases: InfoRegen

property locations

Built-in immutable sequence.

If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.

If the argument is a tuple, the return value is the same object.

register(engine)[source]

register with a MergeEngine

should_skip_directory(basepath, files)[source]
trigger(engine, *args)[source]
class pkgcore.ebuild.triggers.ProtectOwned(vdb, *args)[source]

Bases: FileCollision

collision(colliding)[source]

Handle livefs file collisions.

Must be overridden in derived trigger classes.

class pkgcore.ebuild.triggers.SFPerms[source]

Bases: base

required_csets = ('new_cset',)
trigger(engine, cset)[source]
pkgcore.ebuild.triggers.collapse_envd(base)[source]
class pkgcore.ebuild.triggers.env_update[source]

Bases: base

priority = 5
required_csets = ()
trigger(engine)[source]
class pkgcore.ebuild.triggers.install_into_symdir_protect(extra_protects=(), extra_disables=())[source]

Bases: base

required_csets = {0: ('install', 'install_existing', 'old_cset'), 1: ('install', 'install_existing')}
trigger(engine, install, existing, old_cset=())[source]
class pkgcore.ebuild.triggers.preinst_contents_reset(format_op)[source]

Bases: base

priority = 1
required_csets = ('new_cset',)
trigger(engine, cset)[source]
pkgcore.ebuild.triggers.string_collapse_envd(envd_dict, incrementals, colon_incrementals)[source]

transform a passed in dict to strictly strings