Bugfixed show installed version

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-12-17 13:50:19 +02:00
parent 20fe9ce18e
commit bf45160027
3 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,7 @@
4.3.8 - 17/12/2022
BugFixed:
- View installed version
4.3.7 - 09/12/2022
Updated:
- Merge method is_installed in utilities

View file

@ -44,10 +44,11 @@ class Check:
utils = Utilities()
for sbo in slackbuilds:
found.append((utils.is_installed(sbo)))
for sbo in slackbuilds:
if sbo not in found:
package = utils.is_installed(sbo)
if package:
pkg = '-'.join(package.split('-')[:-3])
found.append(pkg)
else:
not_found.append(sbo)
if not_found:

View file

@ -22,7 +22,7 @@ class Utilities:
for package in os.listdir(self.configs.log_packages):
pkg = '-'.join(package.split('-')[:-3])
if pkg == name and self.configs.sbo_repo_tag in package and pkg not in self.black.get():
return pkg
return package
@staticmethod
def untar_archive(path: str, archive: str, ext_path: str):