mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Updated for coding style
This commit is contained in:
parent
a2da102c79
commit
89f3f14723
1 changed files with 3 additions and 0 deletions
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue