Updated error messages

This commit is contained in:
Dimitris Zlatanidis 2022-06-18 10:05:55 +03:00
parent 93dd8c951d
commit 2ecb5d407f

View file

@ -25,15 +25,14 @@ class Check:
self.database()
for sbo in slackbuilds:
if not SBoQueries(sbo).slackbuild():
raise SystemExit(f'Error: Package {sbo} does not exists.')
raise SystemExit(f'\nPackage {sbo} does not exists.\n')
def unsupported(self, slackbuilds):
''' Checking for unsupported slackbuilds. '''
for sbo in slackbuilds:
sources = SBoQueries(sbo).sources()
if 'UNSUPPORTED' in sources:
raise SystemExit(f'Error: Package {sbo} '
'unsupported by arch.')
raise SystemExit(f'\nPackage {sbo} unsupported by arch.\n')
def installed(self, slackbuilds):
''' Checking for installed packages. '''
@ -41,7 +40,7 @@ class Check:
for sbo in slackbuilds:
if sbo + '-' in package and self.repo_tag in package:
return
raise SystemExit('Error: Not found packages for remove.')
raise SystemExit('\nNot found packages for remove.\n')
def database(self):
''' Checking for empty table '''