lib/repo_tools.pm

repo_tools

Tools for repositories used by openQA:

add_qa_head_repo

 add_qa_head_repo();

Helper to add QA:HEAD repository repository (usually from IBS). This repository *is* mandatory.

add_qa_web_repo

 add_qa_web_repo();

Helper to add QA web repository repository. This repository is *not* mandatory.

get_repo_var_name

 get_repo_var_name($repo_name);

This takes something like "MODULE_BASESYSTEM_SOURCE" as parameter $repo_name and returns "REPO_SLE15_SP1_MODULE_BASESYSTEM_SOURCE" when being called on SLE15-SP1.

smt_wizard

 smt_wizard();

Run smt wizard workflow and to get repository synced with smt server

get_repo_var_name

 get_repo_var_name();

Verify smt mirror function and mirror a tiny released repo from SCC. Hardcode it as SLES12-SP3-Installer-Updates.

type_password_twice

 type_password_twice();

Type password, TAB, password, ALT+o. This is for use within YaST.

rmt_wazard

rmt_wizard();

Install Repository Mirroring Tool and mariadb database

rmt_mirror_repo

 rmt_mirror_repo();

Function to verify and enable repository mirror

rmt_import_data

 rmt_import_data($datafile);

RMT server import data about available repositories and the mirrored packages from disconnected RMT server, then verify imported repositories on new RMT server. $datafile is repository source.

prepare_source_repo

 prepare_source_repo($repo_name);

Prepare SLES or OSS souce repositories

disable_source_repo

 disable_source_repo();

Disable source repositories

generate_version

 generate_version($separator);

Generate SLE or openSUSE versions. $separator is separator used for version number, it will be default to _ if omitted. Example: SLES-12-4, openSUSE_Leap

validate_repo_enablement

 validate_repo_enablement(%args);

Validates that repo with given name and alias has correct uri and is enabled. %args should have following keys defined: - alias: repository alias - name: repository name - uri: repository uri