pkgcore.sync.base module

pkgcore.sync.base.AutodetectSyncer(basedir, **kwargs)[source]
class pkgcore.sync.base.DisabledSyncer(path, *args, **kwargs)[source]

Bases: Syncer

disabled = True
class pkgcore.sync.base.ExternalSyncer(*args, **kwargs)[source]

Bases: Syncer

Base class for syncers that spawn a binary to do the the actual work.

binary = None
env_whitelist = ('SSH_AUTH_SOCK',)
static require_binary(bin_name, fatal=True)[source]
pkgcore.sync.base.GenericSyncer(basedir, uri, **kwargs)[source]

Syncer using the plugin system to find a syncer based on uri.

exception pkgcore.sync.base.MissingBinary(binary, msg)[source]

Bases: SyncError

exception pkgcore.sync.base.MissingLocalUser(uri, msg)[source]

Bases: SyncError

exception pkgcore.sync.base.SyncError(msg, verbosity=None)[source]

Bases: PkgcoreUserException

Generic syncing error.

class pkgcore.sync.base.Syncer(path, uri, default_verbosity=0, usersync=False, opts='')[source]

Bases: object

disabled = False
forcable = False
classmethod is_usable_on_filepath(path)[source]
static parse_uri(uri)[source]

Return the real URI with any protocol prefix stripped.

pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>
split_users(raw_uri)[source]
Parameters:

raw_uri – string uri to split users from; harring::ferringb:pass for example is local user ‘harring’, remote ‘ferringb’, password ‘pass’

Returns:

(local user, remote user, remote pass), defaults to the current process’s uid if no local user specified

supported_exts = ()
supported_protocols = ()
supported_uris = ()
classmethod supports_uri(uri)[source]
sync(verbosity: int | None = None, force=False)[source]
exception pkgcore.sync.base.UriError(uri, msg)[source]

Bases: SyncError

class pkgcore.sync.base.VcsSyncer(*args, **kwargs)[source]

Bases: ExternalSyncer