From 7b8ea291807cba82ecc9f4a4980391bcec5c344c Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 7 Mar 2023 22:38:40 +0200 Subject: [PATCH] Updated for error messages --- slpkg/checks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slpkg/checks.py b/slpkg/checks.py index 799c8431..f863b00b 100644 --- a/slpkg/checks.py +++ b/slpkg/checks.py @@ -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