mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Fix matching installed name with repo name
This commit is contained in:
parent
099993619d
commit
ed7e432275
1 changed files with 8 additions and 2 deletions
|
@ -222,11 +222,17 @@ class SBoInstall(object):
|
||||||
color yellow for packages to upgrade and color red
|
color yellow for packages to upgrade and color red
|
||||||
if not installed.
|
if not installed.
|
||||||
"""
|
"""
|
||||||
|
inst_name = ""
|
||||||
|
# split sbo name with version and get name
|
||||||
|
sbo_name = "-".join(sbo.split("-")[:-1])
|
||||||
|
# split installed package and get installed name
|
||||||
|
find = find_package(sbo_name + "-", self.meta.pkg_path)
|
||||||
|
if find:
|
||||||
|
inst_name = split_package(find[0])[0]
|
||||||
if find_package(sbo, self.meta.pkg_path):
|
if find_package(sbo, self.meta.pkg_path):
|
||||||
paint = self.meta.color["GREEN"]
|
paint = self.meta.color["GREEN"]
|
||||||
count_ins += 1
|
count_ins += 1
|
||||||
elif find_package("-".join(sbo.split("-")[:-1]) + "-",
|
elif sbo_name == inst_name:
|
||||||
self.meta.pkg_path):
|
|
||||||
paint = self.meta.color["YELLOW"]
|
paint = self.meta.color["YELLOW"]
|
||||||
count_upg += 1
|
count_upg += 1
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue