mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Updated error messages
This commit is contained in:
parent
93dd8c951d
commit
2ecb5d407f
1 changed files with 3 additions and 4 deletions
|
@ -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 '''
|
||||
|
|
Loading…
Reference in a new issue