diff --git a/ChangeLog.txt b/ChangeLog.txt index 7069c5b2..bbe69ed1 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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 diff --git a/slpkg/remove_packages.py b/slpkg/remove_packages.py index 5b932553..cee7b1fc 100644 --- a/slpkg/remove_packages.py +++ b/slpkg/remove_packages.py @@ -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()