Updated with config

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-11-23 21:07:29 +02:00
parent f08b54e9d7
commit 5a2ac83b2a

View file

@ -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 '''