From e064584e146d597de1ade1753b40260c6afdf452 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sat, 29 Oct 2022 19:52:52 +0300 Subject: [PATCH] Updated names Signed-off-by: Dimitris Zlatanidis --- slpkg/upgrade.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/slpkg/upgrade.py b/slpkg/upgrade.py index dab5883f..a9aa11be 100644 --- a/slpkg/upgrade.py +++ b/slpkg/upgrade.py @@ -22,11 +22,12 @@ class Upgrade: for pkg in os.listdir(self.log_packages): if pkg.endswith(self.sbo_repo_tag): - name = '-'.join(pkg.split('-')[:-3]) + inst_pkg_name = '-'.join(pkg.split('-')[:-3]) - if name in repo_packages: - installed_ver = pkg.replace(name + '-', '').split('-')[0] - repo_ver = SBoQueries(name).version() + if inst_pkg_name in repo_packages: + installed_ver = pkg.replace( + inst_pkg_name + '-', '').split('-')[0] + repo_ver = SBoQueries(inst_pkg_name).version() if LooseVersion(repo_ver) > LooseVersion(installed_ver): - yield name + yield inst_pkg_name