Updated help text

This commit is contained in:
Dimitris Zlatanidis 2023-03-14 21:55:59 +02:00
parent 6a10d3fbeb
commit 1536e4d578
2 changed files with 7 additions and 10 deletions

View file

@ -1,4 +1,7 @@
4.5.9 - 10/03/2023
4.6.0 - 14/03/2023
Updated:
- Dialog text help for dependencies
BugFixed:
- Default build path /tmp/slpkg/build
- Build a package with multiple sources

View file

@ -349,7 +349,7 @@ class Slackbuilds(Configs):
if self.output != 0:
raise SystemExit(f"\n[{self.bred}FAILED{self.endc}]: {self.output}: {self.process_message}.\n")
def choose_dependencies(self, dependencies: list) -> list:
def choose_dependencies(self, dependencies: list, description=None) -> list:
""" Choose packages for install. """
height: int = 10
width: int = 70
@ -361,14 +361,8 @@ class Slackbuilds(Configs):
status: bool = False
repo_ver: str = SBoQueries(package).version()
help_text: str = f'Package: {package}-{repo_ver}'
inst_pkg: str = self.utils.is_package_installed(package, self.file_pattern)
inst_pkg_ver: str = self.utils.split_installed_pkg(inst_pkg)[1]
if inst_pkg and self.utils.is_package_upgradeable(package, self.file_pattern):
help_text: str = f'Installed: {package}-{inst_pkg_ver} -> Available: {repo_ver}'
repo_ver: str = f'{inst_pkg_ver} -> {repo_ver}'
description: str = SBoQueries(package).description()
help_text: str = f'Description: {description}'
if self.mode == 'build':
status: bool = True