From 01ebd9d6bbc3f0a7dd3568fc9a34f558c3ddfa5d Mon Sep 17 00:00:00 2001 From: Gaurav Ramrakhyani Date: Wed, 13 Mar 2024 12:32:48 +0530 Subject: [PATCH] Some indentation changes --- src/core/src/core_logic/PatchInstaller.py | 1 + src/core/src/package_managers/AptitudePackageManager.py | 2 +- src/core/src/package_managers/PackageManager.py | 2 +- src/core/src/package_managers/YumPackageManager.py | 2 +- src/core/src/package_managers/ZypperPackageManager.py | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/src/core_logic/PatchInstaller.py b/src/core/src/core_logic/PatchInstaller.py index ff876a2e..48354c51 100644 --- a/src/core/src/core_logic/PatchInstaller.py +++ b/src/core/src/core_logic/PatchInstaller.py @@ -281,6 +281,7 @@ def install_updates(self, maintenance_window, package_manager, simulate=False): # Check for packages available and install them in batches. Some packages may not be installed due to: # (a) Not enough time remaining in maintenance window # (b) Failure during package installation + # Start Batch Patching Phase1 successful_parent_package_install_count_in_batch_patching_phase1 = 0 if max_batch_size_for_packages_phase1 > 0: diff --git a/src/core/src/package_managers/AptitudePackageManager.py b/src/core/src/package_managers/AptitudePackageManager.py index 9275210b..4fd2eb83 100644 --- a/src/core/src/package_managers/AptitudePackageManager.py +++ b/src/core/src/package_managers/AptitudePackageManager.py @@ -765,4 +765,4 @@ def separate_out_esm_packages(self, packages, package_versions): return non_esm_packages, non_esm_package_versions, ua_esm_required_packages, ua_esm_required_package_versions, ua_esm_required_packages_found def get_package_install_expected_avg_time_in_minutes(self): - return self.package_install_expected_avg_time_in_minutes \ No newline at end of file + return self.package_install_expected_avg_time_in_minutes diff --git a/src/core/src/package_managers/PackageManager.py b/src/core/src/package_managers/PackageManager.py index 2cf74d99..1aacde9d 100644 --- a/src/core/src/package_managers/PackageManager.py +++ b/src/core/src/package_managers/PackageManager.py @@ -474,4 +474,4 @@ def separate_out_esm_packages(self, packages, package_versions): @abstractmethod def get_package_install_expected_avg_time_in_minutes(self): """Retrieves average time to install package in minutes.""" - pass \ No newline at end of file + pass diff --git a/src/core/src/package_managers/YumPackageManager.py b/src/core/src/package_managers/YumPackageManager.py index 0c2a6583..1123c3f2 100644 --- a/src/core/src/package_managers/YumPackageManager.py +++ b/src/core/src/package_managers/YumPackageManager.py @@ -997,4 +997,4 @@ def separate_out_esm_packages(self, packages, package_versions): return packages, package_versions, esm_packages, esm_package_versions, esm_packages_found def get_package_install_expected_avg_time_in_minutes(self): - return self.package_install_expected_avg_time_in_minutes \ No newline at end of file + return self.package_install_expected_avg_time_in_minutes diff --git a/src/core/src/package_managers/ZypperPackageManager.py b/src/core/src/package_managers/ZypperPackageManager.py index a896010d..065718fd 100644 --- a/src/core/src/package_managers/ZypperPackageManager.py +++ b/src/core/src/package_managers/ZypperPackageManager.py @@ -839,4 +839,4 @@ def separate_out_esm_packages(self, packages, package_versions): return packages, package_versions, esm_packages, esm_package_versions, esm_packages_found def get_package_install_expected_avg_time_in_minutes(self): - return self.package_install_expected_avg_time_in_minutes \ No newline at end of file + return self.package_install_expected_avg_time_in_minutes