mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-25 09:58:41 +01:00
Updated for packages
This commit is contained in:
parent
1735c792c0
commit
d3c64af608
2 changed files with 3 additions and 4 deletions
|
@ -25,20 +25,19 @@ class Check:
|
|||
''' Checking if the slackbuild exists in the repository. '''
|
||||
for sbo in self.slackbuilds:
|
||||
if not SBoQueries(sbo).slackbuild():
|
||||
raise SystemExit(f'Error: Slackbuild {sbo} does not exists.')
|
||||
raise SystemExit(f'Error: Package {sbo} does not exists.')
|
||||
|
||||
def unsupported(self):
|
||||
''' Checking for unsupported slackbuilds. '''
|
||||
for sbo in self.slackbuilds:
|
||||
sources = SBoQueries(sbo).sources()
|
||||
if 'UNSUPPORTED' in sources:
|
||||
raise SystemExit(f'Error: Slackbuild {sbo} '
|
||||
raise SystemExit(f'Error: Package {sbo} '
|
||||
'unsupported by arch.')
|
||||
|
||||
def installed(self):
|
||||
''' Checking for installed packages. '''
|
||||
installed = os.listdir(self.log_packages)
|
||||
for package in installed:
|
||||
for package in os.listdir(self.log_packages):
|
||||
for sbo in self.slackbuilds:
|
||||
if sbo + '-' in package and self.repo_tag in package:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue