ahriman.core.archive package

Submodules

ahriman.core.archive.archive_tree module

class ArchiveTree(repository_path: RepositoryPaths, sign_args: list[str])

Bases: LazyLogging

wrapper around archive tree

paths

repository paths instance

Type:

RepositoryPaths

repository_id

repository unique identifier

Type:

RepositoryId

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

create symlinks for the specified packages in today’s repository

Parameters:

packages (list[Package]) – list of packages to be updated

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: Trigger

archive repository extension

paths

repository paths instance

Type:

RepositoryPaths

tree

archive tree wrapper

Type:

ArchiveTree

Parameters:
on_result(result: Result, packages: list[Package]) None

run trigger

Parameters:
  • result (Result) – build result

  • packages (list[Package]) – list of all available packages

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

Module contents