From e7d4bb8d25915012b8abc0ba1d938843bbb9c058 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 30 Mar 2023 17:11:31 +0300 Subject: [PATCH] Updated for coding style --- slpkg/sbos/slackbuild.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/slpkg/sbos/slackbuild.py b/slpkg/sbos/slackbuild.py index 2b522725..2973f49a 100644 --- a/slpkg/sbos/slackbuild.py +++ b/slpkg/sbos/slackbuild.py @@ -212,9 +212,9 @@ class Slackbuilds(Configs): if self.continue_build_or_install(sbo): self.build_the_script(self.build_path, sbo) - if not self.mode == 'build': + if self.mode in ['install', 'upgrade']: - pkg: str = self.creating_package_for_install(sbo) + pkg: str = self.package_for_install(sbo) self.install_package(pkg) if not self.utils.is_option(self.flag_resolve_off, self.flags): @@ -277,9 +277,8 @@ class Slackbuilds(Configs): self.multi_process(command, package, message) - def creating_package_for_install(self, name: str) -> str: - """ Creating a list with all the finished packages for - installation. """ + def package_for_install(self, name: str) -> str: + """ Returns the package for install. """ version: str = SBoQueries(name).version() pattern: str = f'{name}-{version}*{self.repos.repo_tag}*'