ahriman.core.housekeeping package

Submodules

ahriman.core.housekeeping.archive_rotation_trigger module

class ArchiveRotationTrigger(repository_id: RepositoryId, configuration: Configuration)

Bases: Trigger

remove packages from archive

keep_built_packages

number of last packages to keep

Type:

int

paths

repository paths instance

Type:

RepositoryPaths

Parameters:
classmethod configuration_sections(configuration: Configuration) list[str]

extract configuration sections from configuration

Parameters:

configuration (Configuration) – configuration instance

Returns:

read configuration sections belong to this trigger

Return type:

list[str]

archives_remove(package: Package, pacman: Pacman) None

remove older versions of the specified package

Parameters:
  • package (Package) – package which has been updated to check for older versions

  • pacman (Pacman) – alpm wrapper instance

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

run trigger

Parameters:
  • result (Result) – build result

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

ahriman.core.housekeeping.logs_rotation_trigger module

class LogsRotationTrigger(repository_id: RepositoryId, configuration: Configuration)

Bases: Trigger

rotate logs after build processes

keep_last_records

number of last records to keep

Type:

int

Parameters:
classmethod configuration_sections(configuration: Configuration) list[str]

extract configuration sections from configuration

Parameters:

configuration (Configuration) – configuration instance

Returns:

read configuration sections belong to this trigger

Return type:

list[str]

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

run trigger

Parameters:
  • result (Result) – build result

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

Module contents