mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-27 09:58:10 +01:00
Refactor list
This commit is contained in:
parent
289e4beb4b
commit
6818ede72b
1 changed files with 4 additions and 4 deletions
|
@ -19,14 +19,14 @@ class Check:
|
|||
@staticmethod
|
||||
def exists(slackbuilds: list):
|
||||
""" Checking if the slackbuild exists in the repository. """
|
||||
packages = []
|
||||
not_packages = []
|
||||
|
||||
for sbo in slackbuilds:
|
||||
if not SBoQueries(sbo).slackbuild():
|
||||
packages.append(sbo)
|
||||
not_packages.append(sbo)
|
||||
|
||||
if packages:
|
||||
raise SystemExit(f'\nPackages \'{", ".join(packages)}\' '
|
||||
if not_packages:
|
||||
raise SystemExit(f'\nPackages \'{", ".join(not_packages)}\' '
|
||||
'does not exists.\n')
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in a new issue