pkgcore.resolver.state module

class pkgcore.resolver.state.add_backref_op(choices, pkg, force=False)[source]

Bases: base_op_state

apply(plan)[source]
desc = 'backref'
internal = True
revert(plan)[source]
class pkgcore.resolver.state.add_hardref_op(restriction)[source]

Bases: base_op_state

apply(plan)[source]
choices = None
desc = 'hardref'
force = True
internal = True
pkg = None
restriction
revert(plan)[source]
class pkgcore.resolver.state.add_op(choices, pkg, force=False)[source]

Bases: base_op_state

apply(plan)[source]
desc = 'add'
revert(plan)[source]
class pkgcore.resolver.state.base_op_state(choices, pkg, force=False)[source]

Bases: object

apply(plan)[source]
choices
force
internal = False
pkg
revert(plan)[source]
class pkgcore.resolver.state.blocker_base_op(choices, blocker, key=None)[source]

Bases: object

apply(plan)[source]
blocker
choices
desc = None
internal = True
key
revert(plan)[source]
class pkgcore.resolver.state.decref_forward_block_op(choices, blocker, key=None)[source]

Bases: blocker_base_op

apply(plan)[source]
revert(plan)[source]
class pkgcore.resolver.state.incref_forward_block_op(choices, blocker, key=None)[source]

Bases: blocker_base_op

apply(plan)[source]
revert(plan)[source]
class pkgcore.resolver.state.plan_state[source]

Bases: object

add_blocker(choices, blocker, key=None)[source]

Adds blocker, returning any packages blocked.

Parameters:

choices (pkgcore.resolver.choice_point.choice_point) – package choices

backtrack(state_pos)[source]

Backtrack over a plan.

property current_state
iter_ops(return_livefs=False)[source]
ops(livefs=False, only_real=False)[source]
class pkgcore.resolver.state.remove_op(choices, pkg, force=False)[source]

Bases: base_op_state

apply(plan)[source]
desc = 'remove'
revert(plan)[source]
class pkgcore.resolver.state.replace_op(*args, **kwds)[source]

Bases: base_op_state

apply(plan)[source]
desc = 'replace'
force_old
old_choices
old_pkg
revert(plan)[source]