Fixed for resolve off option

This commit is contained in:
Dimitris Zlatanidis 2024-04-26 22:24:25 +03:00
parent 74ec007fb9
commit c8ea72706a
2 changed files with 7 additions and 2 deletions

View file

@ -1,9 +1,10 @@
## slpkg - ChangeLog ## slpkg - ChangeLog
### 5.0.7 - 21/04/2024 ### 5.0.7 - 26/04/2024
- Fixed: - Fixed:
* Fixed raise error message instead toml error message * Fixed raise error message instead toml error message
* Resolve off option dependencies for remove packages
### 5.0.6 - 19/04/2024 ### 5.0.6 - 19/04/2024

View file

@ -37,12 +37,16 @@ class RemovePackages(Configs): # pylint: disable=[R0902]
self.option_for_yes: bool = self.utils.is_option( self.option_for_yes: bool = self.utils.is_option(
('-y', '--yes'), flags) ('-y', '--yes'), flags)
self.option_for_resolve_off: bool = self.utils.is_option(
('-O', '--resolve-off'), flags)
def remove(self, upgrade: bool = False) -> None: def remove(self, upgrade: bool = False) -> None:
""" Remove packages """ Remove packages
Args: Args:
upgrade (bool, optional): Is packages comes from upgrade method. upgrade (bool, optional): Is packages comes from upgrade method.
""" """
if not self.option_for_resolve_off:
self.deps_log: dict = self.utils.read_json_file(self.deps_log_file) self.deps_log: dict = self.utils.read_json_file(self.deps_log_file)
if upgrade: if upgrade: