mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Bugfixed show installed version
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
20fe9ce18e
commit
bf45160027
3 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue