portage.sync.modules.webrsync.webrsync module

WebRsync module for portage

class portage.sync.modules.webrsync.webrsync.PyWebRsync

Bases: portage.sync.syncbase.SyncBase

WebRSync sync class

_get_openpgp_env(openpgp_key_path=None)
_get_submodule_paths()
_key_refresh_retry_decorator()

Return a retry decorator, or None if retry is disabled.

If retry fails, the function reraises the exception raised by the decorated function. If retry times out and no exception is available to reraise, the function raises TimeoutError.

_kwargs(kwargs)

Sets internal variables from kwargs

_refresh_keys(openpgp_env)

Refresh keys stored in openpgp_env. Raises gemato.exceptions.GematoException or asyncio.TimeoutError on failure.

Parameters

openpgp_env (gemato.openpgp.OpenPGPEnvironment) – openpgp environment

_select_storage_module()

Select an appropriate implementation of RepoStorageInterface, based on repos.conf settings.

Return type

str

Returns

name of the selected repo storage constructor

can_progressbar(func)
property download_dir

Get the path of the download directory, where the repository update is staged. The directory is initialized lazily, since the repository might already be at the latest revision, and there may be some cost associated with the directory initialization.

exists(**kwargs)

Tests whether the repo actually exists

property has_bin

Checks for existance of the external binary, and also checks for storage driver configuration problems.

MUST only be called after _kwargs() has set the logger

static name()
post_sync(portdb, location, emerge_config)

repo.sync_type == “Blank”: # NOTE: Do this after reloading the config, in case # it did not exist prior to sync, so that the config # and portdb properly account for its existence.

property repo_storage

Get the repo storage driver instance. Raise RepoStorageException if there is a configuration problem

retrieve_head(**kwargs)

Get information about the head commit

short_desc = 'Perform sync operations on webrsync based repositories'
sync(**kwargs)

Sync the repository

class portage.sync.modules.webrsync.webrsync.WebRsync

Bases: portage.sync.syncbase.SyncBase

WebRSync sync class

_get_openpgp_env(openpgp_key_path=None)
_get_submodule_paths()
_key_refresh_retry_decorator()

Return a retry decorator, or None if retry is disabled.

If retry fails, the function reraises the exception raised by the decorated function. If retry times out and no exception is available to reraise, the function raises TimeoutError.

_kwargs(kwargs)

Sets internal variables from kwargs

_refresh_keys(openpgp_env)

Refresh keys stored in openpgp_env. Raises gemato.exceptions.GematoException or asyncio.TimeoutError on failure.

Parameters

openpgp_env (gemato.openpgp.OpenPGPEnvironment) – openpgp environment

_select_storage_module()

Select an appropriate implementation of RepoStorageInterface, based on repos.conf settings.

Return type

str

Returns

name of the selected repo storage constructor

can_progressbar(func)
property download_dir

Get the path of the download directory, where the repository update is staged. The directory is initialized lazily, since the repository might already be at the latest revision, and there may be some cost associated with the directory initialization.

exists(**kwargs)

Tests whether the repo actually exists

property has_bin

Checks for existance of the external binary, and also checks for storage driver configuration problems.

MUST only be called after _kwargs() has set the logger

static name()
post_sync(portdb, location, emerge_config)

repo.sync_type == “Blank”: # NOTE: Do this after reloading the config, in case # it did not exist prior to sync, so that the config # and portdb properly account for its existence.

property repo_storage

Get the repo storage driver instance. Raise RepoStorageException if there is a configuration problem

retrieve_head(**kwargs)

Get information about the head commit

short_desc = 'Perform sync operations on webrsync based repositories'
sync(**kwargs)

Sync the repository