mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for error messages
This commit is contained in:
parent
da361ac8f1
commit
7b8ea29180
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue