mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Fixed for resolve off option
This commit is contained in:
parent
74ec007fb9
commit
c8ea72706a
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -37,13 +37,17 @@ 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.
|
||||||
"""
|
"""
|
||||||
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:
|
if upgrade:
|
||||||
self.packages: list = self.choose_packages_for_remove(self.packages, upgrade)
|
self.packages: list = self.choose_packages_for_remove(self.packages, upgrade)
|
||||||
|
|
Loading…
Reference in a new issue