mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated for skipped
This commit is contained in:
parent
80352422a9
commit
a15eb3e578
3 changed files with 6 additions and 3 deletions
|
@ -206,7 +206,7 @@ class Slackbuilds(Configs):
|
||||||
else:
|
else:
|
||||||
installed_package: str = self.utils.is_package_installed(sbo)
|
installed_package: str = self.utils.is_package_installed(sbo)
|
||||||
installed_version: str = self.utils.split_package(installed_package)['version']
|
installed_version: str = self.utils.split_package(installed_package)['version']
|
||||||
self.view_message.view_skipping_packages(sbo, installed_version)
|
self.view_message.view_skipping_packages(installed_package)
|
||||||
|
|
||||||
def patch_slackbuild_tag(self, sbo: str) -> None:
|
def patch_slackbuild_tag(self, sbo: str) -> None:
|
||||||
sbo_script: Path = Path(self.build_path, sbo, f'{sbo}.SlackBuild')
|
sbo_script: Path = Path(self.build_path, sbo, f'{sbo}.SlackBuild')
|
||||||
|
|
|
@ -26,6 +26,7 @@ class AsciiBox(Configs):
|
||||||
self.bullet: str = '-'
|
self.bullet: str = '-'
|
||||||
self.done: str = 'Done'
|
self.done: str = 'Done'
|
||||||
self.failed: str = 'Failed'
|
self.failed: str = 'Failed'
|
||||||
|
self.skipped: str = 'Skipped'
|
||||||
|
|
||||||
self.vertical_line: str = '|'
|
self.vertical_line: str = '|'
|
||||||
self.horizontal_line: str = '='
|
self.horizontal_line: str = '='
|
||||||
|
@ -43,6 +44,7 @@ class AsciiBox(Configs):
|
||||||
self.bullet: str = '•'
|
self.bullet: str = '•'
|
||||||
self.done: str = '✔️'
|
self.done: str = '✔️'
|
||||||
self.failed: str = 'X'
|
self.failed: str = 'X'
|
||||||
|
self.skipped: str = '↪'
|
||||||
self.vertical_line: str = '│'
|
self.vertical_line: str = '│'
|
||||||
self.horizontal_line: str = '─'
|
self.horizontal_line: str = '─'
|
||||||
self.horizontal_vertical: str = '┼'
|
self.horizontal_vertical: str = '┼'
|
||||||
|
|
|
@ -231,8 +231,9 @@ class ViewMessage(Configs):
|
||||||
version: str = self.utils.split_package(installed_package)['version']
|
version: str = self.utils.split_package(installed_package)['version']
|
||||||
return f'{package}-{version}'
|
return f'{package}-{version}'
|
||||||
|
|
||||||
def view_skipping_packages(self, package: str, version: str) -> None:
|
def view_skipping_packages(self, filename: str) -> None:
|
||||||
print(f'{self.yellow}Skipping{self.endc}: {package}-{version} {self.red}(already installed){self.endc}')
|
failed: str = f'{self.red}{self.ascii.skipped}{self.endc}'
|
||||||
|
print(f"\r{'':>2}{self.bred}{self.ascii.bullet}{self.endc} {filename} {failed}{' ' * 17}")
|
||||||
|
|
||||||
def question(self) -> None:
|
def question(self) -> None:
|
||||||
if not self.option_for_yes and self.ask_question:
|
if not self.option_for_yes and self.ask_question:
|
||||||
|
|
Loading…
Reference in a new issue