pkgcore.fetch.custom module

fetcher class that pulls files via executing another program to do the fetching

exception pkgcore.fetch.custom.MalformedCommand(command)[source]

Bases: FetchError

class pkgcore.fetch.custom.fetcher(distdir: str, command: str, resume_command=None, required_chksums=None, userpriv: bool = True, attempts: int = 10, readonly: bool = False, **extra_env: str)[source]

Bases: fetcher

fetch(target: fetchable)[source]

Fetch a file.

Returns:

None if fetching failed, else on disk location of the copied file

get_path(fetchable)[source]

return the on disk path to a fetchable if it’s available, and fully fetched.

If it isn’t, return None

pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>