mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for coding style
This commit is contained in:
parent
8d4166a2aa
commit
d20dc910d1
1 changed files with 12 additions and 12 deletions
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue