diff --git a/ChangeLog.txt b/ChangeLog.txt index 835ee119..906102c4 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,9 +1,10 @@ ## slpkg - ChangeLog -### 5.0.7 - 21/04/2024 +### 5.0.7 - 26/04/2024 - Fixed: * Fixed raise error message instead toml error message + * Resolve off option dependencies for remove packages ### 5.0.6 - 19/04/2024 diff --git a/slpkg/remove_packages.py b/slpkg/remove_packages.py index 26594e33..fb99e5c7 100644 --- a/slpkg/remove_packages.py +++ b/slpkg/remove_packages.py @@ -37,13 +37,17 @@ class RemovePackages(Configs): # pylint: disable=[R0902] self.option_for_yes: bool = self.utils.is_option( ('-y', '--yes'), flags) + self.option_for_resolve_off: bool = self.utils.is_option( + ('-O', '--resolve-off'), flags) + def remove(self, upgrade: bool = False) -> None: """ Remove packages Args: upgrade (bool, optional): Is packages comes from upgrade method. """ - self.deps_log: dict = self.utils.read_json_file(self.deps_log_file) + if not self.option_for_resolve_off: + self.deps_log: dict = self.utils.read_json_file(self.deps_log_file) if upgrade: self.packages: list = self.choose_packages_for_remove(self.packages, upgrade)