Updated for upgrade

This commit is contained in:
Dimitris Zlatanidis 2024-04-04 10:53:31 +03:00
parent e81ec798ee
commit d3257bbef8

View file

@ -30,6 +30,7 @@ class Choose(Configs):
if method in ('remove', 'find'):
self.choose_from_installed(packages)
elif method == 'upgrade':
title: str = f' Choose packages you want to {method} or add '
self.choose_for_upgraded(data, packages)
else:
self.choose_for_others(data, packages)
@ -63,7 +64,6 @@ class Choose(Configs):
def choose_for_upgraded(self, data: dict, packages: list):
""" Choose packages that they will going to upgrade. """
for package in packages:
# for package in data.keys():
if package in data.keys():
inst_package: str = self.utils.is_package_installed(package)