Updated for error messages

This commit is contained in:
Dimitris Zlatanidis 2023-03-07 22:38:40 +02:00
parent da361ac8f1
commit 7b8ea29180

View file

@ -31,7 +31,7 @@ class Check(Configs, Utilities):
not_packages.append(sbo)
if not_packages:
raise SystemExit(f'\nPackages \'{", ".join(not_packages)}\' '
raise SystemExit(f'\nError: Packages \'{", ".join(not_packages)}\' '
'does not exists.\n')
return slackbuilds
@ -43,7 +43,7 @@ class Check(Configs, Utilities):
sources = SBoQueries(sbo).sources()
if 'UNSUPPORTED' in sources:
raise SystemExit(f"\nPackage '{sbo}' unsupported by arch.\n")
raise SystemExit(f"\nError: Package '{sbo}' unsupported by arch.\n")
def installed(self, slackbuilds: list, file_pattern: str) -> list:
""" Checking for installed packages. """
@ -58,7 +58,7 @@ class Check(Configs, Utilities):
not_found.append(sbo)
if not_found:
raise SystemExit(f'\nNot found \'{", ".join(not_found)}\' '
raise SystemExit(f'\nError: Not found \'{", ".join(not_found)}\' '
'installed packages.\n')
return found