mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +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
|
@staticmethod
|
||||||
def exists(slackbuilds: list):
|
def exists(slackbuilds: list):
|
||||||
""" Checking if the slackbuild exists in the repository. """
|
""" Checking if the slackbuild exists in the repository. """
|
||||||
packages = []
|
not_packages = []
|
||||||
|
|
||||||
for sbo in slackbuilds:
|
for sbo in slackbuilds:
|
||||||
if not SBoQueries(sbo).slackbuild():
|
if not SBoQueries(sbo).slackbuild():
|
||||||
packages.append(sbo)
|
not_packages.append(sbo)
|
||||||
|
|
||||||
if packages:
|
if not_packages:
|
||||||
raise SystemExit(f'\nPackages \'{", ".join(packages)}\' '
|
raise SystemExit(f'\nPackages \'{", ".join(not_packages)}\' '
|
||||||
'does not exists.\n')
|
'does not exists.\n')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in a new issue