pkgcore.operations.repo module

repository modifications (installing, removing, replacing)

exception pkgcore.operations.repo.Failure[source]

Bases: PkgcoreException

class pkgcore.operations.repo.base(repo, observer)[source]

Bases: object

finalize_data()[source]
finish()[source]
stage_depends = {}
start(*args)[source]
class pkgcore.operations.repo.install(repo, pkg, observer)[source]

Bases: base

add_data(**morekwargs)
description = 'install'
finalize_data(**morekwargs)
finish(**morekwargs)
stage_depends = {'_notify_repo_add': 'finalize_data', 'add_data': 'start', 'finalize_data': 'add_data', 'finish': '_notify_repo_add'}
start(**morekwargs)
class pkgcore.operations.repo.operations(repository, disable_overrides=(), enable_overrides=())[source]

Bases: sync_operations

class pkgcore.operations.repo.operations_proxy(repository, disable_overrides=(), enable_overrides=())[source]

Bases: operations

enabled_operations
raw_operations
class pkgcore.operations.repo.replace(repo, oldpkg, newpkg, observer)[source]

Bases: install, uninstall

add_data(**morekwargs)
description = 'replace'
finalize_data(**morekwargs)
finish(**morekwargs)
remove_data(**morekwargs)
stage_depends = {'_notify_repo_add': 'finalize_data', '_notify_repo_remove': 'remove_data', 'add_data': 'start', 'finalize_data': ('add_data', '_notify_repo_remove'), 'finish': '_notify_repo_add', 'remove_data': 'start'}
start(**morekwargs)
class pkgcore.operations.repo.uninstall(repo, pkg, observer)[source]

Bases: base

description = 'uninstall'
finalize_data(**morekwargs)
finish(**morekwargs)
remove_data(**morekwargs)
stage_depends = {'_notify_repo_remove': 'finalize_data', 'finalize_data': 'remove_data', 'finish': '_notify_repo_remove', 'remove_data': 'start'}
start(**morekwargs)