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
|
4.3.7 - 09/12/2022
|
||||||
Updated:
|
Updated:
|
||||||
- Merge method is_installed in utilities
|
- Merge method is_installed in utilities
|
||||||
|
|
|
@ -44,10 +44,11 @@ class Check:
|
||||||
utils = Utilities()
|
utils = Utilities()
|
||||||
|
|
||||||
for sbo in slackbuilds:
|
for sbo in slackbuilds:
|
||||||
found.append((utils.is_installed(sbo)))
|
package = utils.is_installed(sbo)
|
||||||
|
if package:
|
||||||
for sbo in slackbuilds:
|
pkg = '-'.join(package.split('-')[:-3])
|
||||||
if sbo not in found:
|
found.append(pkg)
|
||||||
|
else:
|
||||||
not_found.append(sbo)
|
not_found.append(sbo)
|
||||||
|
|
||||||
if not_found:
|
if not_found:
|
||||||
|
|
|
@ -22,7 +22,7 @@ class Utilities:
|
||||||
for package in os.listdir(self.configs.log_packages):
|
for package in os.listdir(self.configs.log_packages):
|
||||||
pkg = '-'.join(package.split('-')[:-3])
|
pkg = '-'.join(package.split('-')[:-3])
|
||||||
if pkg == name and self.configs.sbo_repo_tag in package and pkg not in self.black.get():
|
if pkg == name and self.configs.sbo_repo_tag in package and pkg not in self.black.get():
|
||||||
return pkg
|
return package
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def untar_archive(path: str, archive: str, ext_path: str):
|
def untar_archive(path: str, archive: str, ext_path: str):
|
||||||
|
|
Loading…
Reference in a new issue