Application module

class rebasehelper.application.Application(cli_conf, execution_dir, results_dir, debug_log_file)[source]
build_packages()[source]

Function calls build class for building packages

debug_log_file = None
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_all_log_files()[source]

Function returns all log_files created by rebase-helper First if debug log file and second is report summary log file

Returns:
get_checker_outputs()[source]
get_new_build_logs()[source]
get_rebased_patches()[source]

Function returns a list of patches either ‘’: [list_of_deleted_patches] :return:

get_rebasehelper_data()[source]
get_rpm_packages(dirname)[source]

Function returns RPM packages stored in dirname/old and dirname/new directories

Parameters:dirname – directory where are stored old and new RPMS
Returns:
kwargs = {}
new_rest_sources = []
new_sources = ''
old_rest_sources = []
old_sources = ''
patch_sources(sources)[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_runner :param exception: Error message from rebase-helper :return:

print_task_info(builder)[source]
rebase_spec_file = None
rebase_spec_file_path = None
rebased_patches = {}
rebased_repo = None
report_log_file = None
result_file = ''
run()[source]
run_download_compare(tasks_dict, dir_name)[source]
run_package_checkers(results_dir)[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.
Returns:None
set_upstream_monitoring()[source]
static setup(cli_conf)[source]
spec_file = None
spec_file_path = None
temp_dir = ''
upstream_monitoring = False