operations.portage
Provides operations related to the portage package manager.
Functions
def portage.package()
portage.package()
Adds or removes system packages with portage.
Parameters
packages: The packages to modify.
present: Whether the given package should be installed or uninstalled.
oneshot: Whether to use --oneshot to install packages, which prevents them from being added to the world file.
opts: Extra options passed to emerge when installing/uninstalling.
name: The name for the operation.
check: If True, returning
op.failure()
will raise an OperationError. All manually raised OperationErrors will be propagated. When False, any manually raised OperationError will be caught andop.failure()
will be returned with the given message while continuing execution.op: The operation wrapper. Must not be supplied by the user.
Last updated