From 5a2ac83b2a60ebf0eda5636acc3023e00f1bc3c5 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 23 Nov 2022 21:07:29 +0200 Subject: [PATCH] Updated with config Signed-off-by: Dimitris Zlatanidis --- slpkg/checks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slpkg/checks.py b/slpkg/checks.py index 874ac698..8cc46435 100644 --- a/slpkg/checks.py +++ b/slpkg/checks.py @@ -16,6 +16,7 @@ class Check: sbo_repo_tag: str = Configs.sbo_repo_tag db_path: str = Configs.db_path database_name: str = Configs.database + etc_path: str = Configs.etc_path def exists(self, slackbuilds: list): ''' Checking if the slackbuild exists in the repository. ''' @@ -60,7 +61,8 @@ class Check: if packages: raise SystemExit( f'\nThe packages \'{", ".join(packages)}\' is blacklisted.\n' - 'Please edit the blacklist.yml file in /etc/slpkg folder.\n') + f'Please edit the blacklist.yml file in {self.etc_path} ' + 'folder.\n') def database(self): ''' Checking for empty table '''