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,15 +45,15 @@ class RemovePackages(Configs):
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)
self.add_packages_for_remove()
self.remove_doubles_dependencies()
self.dependencies: list = self.choose_packages_for_remove(self.dependencies)
self.add_installed_dependencies_to_remove()
self.view.remove_packages(self.packages, self.dependencies)
self.found_dependent()
if self.packages: if self.packages:
self.add_packages_for_remove()
self.remove_doubles_dependencies()
self.dependencies: list = self.choose_packages_for_remove(self.dependencies)
self.add_installed_dependencies_to_remove()
self.view.remove_packages(self.packages, self.dependencies)
self.found_dependent()
answer: str = 'y' answer: str = 'y'
if upgrade: if upgrade:
answer: str = self.remove_question() answer: str = self.remove_question()