mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Fixed remove packages
This commit is contained in:
parent
4f1c563447
commit
e82394d14c
2 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,10 @@
|
|||
## slpkg - ChangeLog
|
||||
|
||||
### 4.9.5 - 10/12/2023
|
||||
|
||||
- Fixed:
|
||||
* Remove packages with option "--yes"
|
||||
|
||||
### 4.9.4 - 04/12/2023
|
||||
- Added:
|
||||
* LFTP_EXCLUDE extra option for ltfp command to its ignore some not useful files
|
||||
|
|
|
@ -101,7 +101,7 @@ class RemovePackages(Configs):
|
|||
progress_message: str = f'{self.bold}{self.red}Removing{self.endc}'
|
||||
|
||||
dependencies: list = self.is_dependency(name)
|
||||
if dependencies:
|
||||
if dependencies and not self.option_for_yes:
|
||||
self.view_warning_message(dependencies, name)
|
||||
if not self.question_to_remove():
|
||||
continue
|
||||
|
@ -119,7 +119,7 @@ class RemovePackages(Configs):
|
|||
return dependencies
|
||||
|
||||
def question_to_remove(self) -> bool:
|
||||
if not self.option_for_yes and self.ask_question:
|
||||
if self.ask_question:
|
||||
answer: str = input(f'\nDo you want to remove? [y/N] ')
|
||||
if answer in ['Y', 'y']:
|
||||
print()
|
||||
|
|
Loading…
Reference in a new issue