portage.sync.modules.cvs.cvs module

class portage.sync.modules.cvs.cvs.CVSSync

Bases: portage.sync.syncbase.NewBase

CVS sync module

_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 is checked out

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()
new(**kwargs)

Do the initial download and install of the repository

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 CVS repositories'
sync(**kwargs)

Sync the repository

update()

Internal function to update an existing CVS repository

Returns

tuple of return code (0=success), whether the cache needs to be updated

Return type

(int, bool)