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}*'