Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2024-03-21 23:22:31 +02:00
parent a2da102c79
commit 89f3f14723

View file

@ -52,8 +52,10 @@ class Upgrade(Configs):
for installed in installed_packages:
name: str = self.utils.split_package(installed.name)['name']
if self.data[repo].get(name):
repo_package: str = self.data[repo][name]['package'][:-4]
if parse_version(repo_package) > parse_version(installed.name):
self.count_packages += 1
self.count_repos.append(repo)
@ -101,6 +103,7 @@ class Upgrade(Configs):
print(len(title) * '=')
print(f'{self.bgreen}{title}{self.endc}')
print(len(title) * '=')
for data in found_packages.values():
name: str = data['name']
repo_version: str = data['repo_version']