From d3c64af6085bf6b5e013dedb2eada2604b3d38bc Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 17 Jun 2022 20:40:52 +0300 Subject: [PATCH] Updated for packages --- bin/__init__.py | 0 slpkg/main.py | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 bin/__init__.py diff --git a/bin/__init__.py b/bin/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/slpkg/main.py b/slpkg/main.py index 8c39a197..8572f8b7 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -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