diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index dd17ca6f..c6179f55 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -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']