mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-03 06:56:44 +01:00
Updating for help text
This commit is contained in:
parent
1aefb23d46
commit
8f3b56e965
5 changed files with 6 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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:'
|
||||
|
||||
|
|
Loading…
Reference in a new issue