Update code

This commit is contained in:
Dimitris Zlatanidis 2022-12-25 17:01:55 +02:00
parent d43039eb0d
commit adbff87d15

View file

@ -48,6 +48,9 @@ class Upgrade:
def packages(self):
""" Choose packages for upgrade. """
height = 10
width = 70
list_height = 0
title = ' Choose packages you want to upgrade '
choices = []
packages = list(self.search())
@ -60,9 +63,6 @@ class Upgrade:
choices += [(package, f'{inst_ver} -> {repo_ver}', True)]
text = f'There are {len(choices)} packages for upgrade:'
height = 10
width = 70
list_height = 0
code, tags = self.dialog.checklist(text, title, height, width, list_height, choices)