Application module¶
-
class
rebasehelper.application.Application(cli_conf, execution_dir, results_dir, debug_log_file)[source]¶ -
-
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_rebased_patches()[source]¶ Function returns a list of patches either ‘’: [list_of_deleted_patches] :return:
-
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= ''¶
-
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:
-
rebase_spec_file= None¶
-
rebase_spec_file_path= None¶
-
rebased_patches= {}¶
-
rebased_repo= None¶
-
report_log_file= None¶
-
result_file= ''¶
-
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
-
spec_file= None¶
-
spec_file_path= None¶
-
temp_dir= ''¶
-
upstream_monitoring= False¶
-