Application module

class rebasehelper.application.Application(cli_conf: Config, start_dir: str, execution_dir: str, results_dir: str, create_logs: bool = True)[source]
apply_changes()[source]
build_binary_packages()[source]

Function calls build class for building packages

build_source_packages()[source]
static extract_archive(archive_path, destination)[source]

Extracts given archive into the destination and handle all exceptions.

Parameters:
  • archive_path – path to the archive to be extracted

  • destination – path to a destination, where the archive should be extracted to

Returns:

static extract_sources(archive_path, destination)[source]

Function extracts a given Archive and returns a full dirname to sources

generate_patch()[source]

Generates patch to the results_dir containing all needed changes for the rebased package version

get_new_build_logs()[source]
patch_sources(sources)[source]
prepare_next_run(results_dir)[source]
prepare_sources()[source]

Function prepares a sources.

Returns:

print_summary(exception=None)[source]

Save rebase-helper result and print the summary using output tools. :param exception: Error message from rebase-helper :return:

print_task_info(builder)[source]
run()[source]
run_package_checkers(results_dir, **kwargs)[source]

Runs checkers on packages and stores results in a given directory.

Parameters:
  • results_dir (str) – Path to directory in which to store the results.

  • category (str) – checker type(SOURCE/SRPM/RPM)

Returns:

None

static setup(cli_conf)[source]