From 8f3b56e965255b8d368eec69c19ee110bc7805fa Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 7 Mar 2023 17:15:15 +0200 Subject: [PATCH] Updating for help text --- slpkg/form_configs.py | 2 +- slpkg/main.py | 4 ++-- slpkg/remove_packages.py | 3 +-- slpkg/slackbuild.py | 2 +- slpkg/views/views.py | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/slpkg/form_configs.py b/slpkg/form_configs.py index 65104557..6490c2a3 100644 --- a/slpkg/form_configs.py +++ b/slpkg/form_configs.py @@ -34,7 +34,7 @@ class FormConfigs(Configs): elif value is False: value: str = 'false' elements += [ - (key, i, 1, value, i, 21, 47, 200, '0x0', value) + (key, i, 1, value, i, 21, 47, 200, '0x0', f'Config: {key} = {value}') ] code, tags = self.dialogbox.mixedform(text, title, elements, height, width) diff --git a/slpkg/main.py b/slpkg/main.py index b4395de2..c62ee05a 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -339,7 +339,7 @@ class Argparse(Configs): for pkg in packages: if pkg in name: - choices += [(name, version, False, f'{package}')] + choices += [(name, version, False, f'Package: {package}')] elif method == 'upgrade': for pkg in packages: @@ -358,7 +358,7 @@ class Argparse(Configs): if pkg in package: repo_ver = SBoQueries(package).version() - choices += [(package, repo_ver, False, f'{package}-{repo_ver}')] + choices += [(package, repo_ver, False, f'Package: {package}-{repo_ver}')] if not choices: return packages diff --git a/slpkg/remove_packages.py b/slpkg/remove_packages.py index 63df9f80..24404cb0 100644 --- a/slpkg/remove_packages.py +++ b/slpkg/remove_packages.py @@ -125,8 +125,7 @@ class RemovePackages(Configs): def process(self, command: str) -> None: """ Processes execution. """ - self.output = subprocess.call(command, shell=True, - stderr=self.stderr, stdout=self.stdout) + self.output = subprocess.call(command, shell=True, stderr=self.stderr, stdout=self.stdout) if self.output != 0: raise SystemExit(self.output) diff --git a/slpkg/slackbuild.py b/slpkg/slackbuild.py index 8ebf9863..6d2ff1e4 100644 --- a/slpkg/slackbuild.py +++ b/slpkg/slackbuild.py @@ -345,7 +345,7 @@ class Slackbuilds(Configs): status: bool = False repo_ver: str = SBoQueries(package).version() - help_text: str = f'{package}-{repo_ver}' + 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] diff --git a/slpkg/views/views.py b/slpkg/views/views.py index c2dece69..cbe7c981 100644 --- a/slpkg/views/views.py +++ b/slpkg/views/views.py @@ -172,7 +172,7 @@ class ViewMessage(Configs): for package in dependencies: repo_ver: str = SBoQueries(package).version() inst_pkg: str = self.utils.is_package_installed(package, self.file_pattern) - choices += [(package, repo_ver, True, f'Removed: {inst_pkg}')] + choices += [(package, repo_ver, True, f'Package: {inst_pkg}')] text: str = f'There are {len(choices)} dependencies:'