diff --git a/slpkg/checks.py b/slpkg/checks.py index 48f78ef3..1a9ed173 100644 --- a/slpkg/checks.py +++ b/slpkg/checks.py @@ -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