kiwi.solver.repository Package

Submodules

kiwi.solver.repository.base Module

class kiwi.solver.repository.base.SolverRepositoryBase(uri, user=None, secret=None)[source]

Bases: object

Base class interface for SAT solvable creation.

Parameters:
  • uri (object) – Instance of Uri

  • user (string) – User name for uri authentication

  • secret (string) – Secret token for uri authentication

create_repository_solvable(target_dir='/var/tmp/kiwi/satsolver')[source]

Create SAT solvable for this repository from previously created intermediate solvables by merge and store the result solvable in the specified target_dir

Parameters:

target_dir (str) – path name

Returns:

file path to solvable

Return type:

str

download_from_repository(repo_source, target)[source]

Download given source file from the repository and store it as target file

The repo_source location is used relative to the repository location and will be part of a mime type source like: file://repo_path/repo_source

Parameters:
  • repo_source (str) – source file in the repo

  • target (str) – file path

Raises:

KiwiUriOpenError – if the download fails

get_repo_type()[source]
is_uptodate(target_dir='/var/tmp/kiwi/satsolver')[source]

Check if repository metadata is up to date

Returns:

True or False

Return type:

bool

timestamp()[source]

Return repository timestamp

The retrieval of the repository timestamp depends on the type of the repository and is therefore supposed to be implemented in the specialized Solver Repository classes. If no such implementation exists the method returns the value ‘static’ to indicate there is no timestamp information available.

Return type:

str

class kiwi.solver.repository.rpm_md.SolverRepositoryRpmMd(uri, user=None, secret=None)[source]

Bases: SolverRepositoryBase

Class for SAT solvable creation for rpm-md type repositories.

timestamp()[source]

Get timestamp from the first primary metadata

Returns:

time value as text

Return type:

str

class kiwi.solver.repository.rpm_dir.SolverRepositoryRpmDir(uri, user=None, secret=None)[source]

Bases: SolverRepositoryBase

Class for SAT solvable creation for rpm_dir type repositories.

class kiwi.solver.repository.suse.SolverRepositorySUSE(uri, user=None, secret=None)[source]

Bases: SolverRepositoryBase

Class for SAT solvable creation for SUSE type repositories.

Module Contents

class kiwi.solver.repository.SolverRepository[source]

Bases: object

Repository factory for creation of SAT solvables

  • param object uri:

    Instance of Uri

static new(uri: Uri, user: str | None = None, secret: str | None = None)[source]