Fix for remove

This commit is contained in:
Dimitris Zlatanidis 2024-03-25 14:00:29 +02:00
parent 691b615edf
commit 6796f1bcf4

View file

@ -45,6 +45,7 @@ class RemovePackages(Configs):
if upgrade:
self.packages: list = self.choose_packages_for_remove(self.packages, upgrade)
if self.packages:
self.add_packages_for_remove()
self.remove_doubles_dependencies()
self.dependencies: list = self.choose_packages_for_remove(self.dependencies)
@ -53,7 +54,6 @@ class RemovePackages(Configs):
self.view.remove_packages(self.packages, self.dependencies)
self.found_dependent()
if self.packages:
answer: str = 'y'
if upgrade:
answer: str = self.remove_question()