mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated names
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
93a0059757
commit
e064584e14
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue