ahriman.core.archive package
Submodules
ahriman.core.archive.archive_tree module
- class ArchiveTree(repository_path: RepositoryPaths, sign_args: list[str])
Bases:
LazyLoggingwrapper around archive tree
- paths
repository paths instance
- Type:
- repository_id
repository unique identifier
- Type:
- sign_args
additional args which have to be used to sign repository archive
- Type:
list[str]
- Parameters:
repository_path (RepositoryPaths) – repository paths instance
sign_args (list[str]) – additional args which have to be used to sign repository archive
- directories_fix(paths: set[Path]) None
remove empty repository directories recursively
- Parameters:
paths (set[Path]) – repositories to check
- repository_for(date: date | None = None) Path
get full path to repository at the specified date
- Parameters:
date (datetime.date | None, optional) – date to generate path. If none supplied then today will be used (Default value = None)
- Returns:
path to the repository root
- Return type:
Path
- symlinks_create(packages: list[Package]) None
create symlinks for the specified packages in today’s repository
- Parameters:
packages (list[Package]) – list of packages to be updated
- symlinks_fix() Iterator[Path]
remove broken symlinks across repositories for all dates
- Yields:
Path – path of the sub-repository with removed symlinks
- tree_create() None
create repository tree for current repository
ahriman.core.archive.archive_trigger module
- class ArchiveTrigger(repository_id: RepositoryId, configuration: Configuration)
Bases:
Triggerarchive repository extension
- paths
repository paths instance
- Type:
- tree
archive tree wrapper
- Type:
- Parameters:
repository_id (RepositoryId) – repository unique identifier
configuration (Configuration) – configuration instance
- on_start() None
trigger action which will be called at the start of the application
- on_stop() None
trigger action which will be called before the stop of the application