Updated for coding style

This commit is contained in:
Dimitris Zlatanidis 2023-03-30 17:11:31 +03:00
parent 4631876089
commit e7d4bb8d25

View file

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