Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2024-03-25 21:56:02 +02:00
parent 8d4166a2aa
commit d20dc910d1

View file

@ -88,17 +88,17 @@ class Upgrade(Configs):
if parse_version(repo_package) > parse_version(installed.name):
self.id += 1
self.sum_upgrade += 1
repo_version: str = self.data[name]['version']
repo_build: str = self.data[name]['build']
inst_version: str = self.utils.split_package(installed.name)['version']
inst_build: str = self.utils.split_package(installed.name)['build']
repo_version: str = self.data[name]['version']
repo_build: str = self.data[name]['build']
found_packages[self.id]: dict = {
'name': name,
'repo_version': repo_version,
'repo_build': repo_build,
'inst_version': inst_version,
'inst_build': inst_build,
'repo_version': repo_version,
'repo_build': repo_build,
'type': 'upgrade'
}
@ -106,17 +106,17 @@ class Upgrade(Configs):
if name not in self.data.keys():
self.id += 1
self.sum_removed += 1
repo_version: str = ''
repo_build: str = ''
inst_version: str = self.utils.split_package(installed.name)['version']
inst_build: str = self.utils.split_package(installed.name)['build']
repo_version: str = ''
repo_build: str = ''
found_packages[self.id]: dict = {
'name': name + '_Removed.',
'repo_version': repo_version,
'repo_build': repo_build,
'inst_version': inst_version,
'inst_build': inst_build,
'repo_version': repo_version,
'repo_build': repo_build,
'type': 'remove'
}
@ -126,17 +126,17 @@ class Upgrade(Configs):
if name not in self.installed_names:
self.id += 1
self.sum_added += 1
repo_version: str = self.data[name]['version']
repo_build: str = self.data[name]['build']
inst_version: str = ''
inst_build: str = ''
repo_version: str = self.data[name]['version']
repo_build: str = self.data[name]['build']
found_packages[self.id]: dict = {
'name': name,
'repo_version': repo_version,
'repo_build': repo_build,
'inst_version': inst_version,
'inst_build': inst_build,
'repo_version': repo_version,
'repo_build': repo_build,
'type': 'add'
}