mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Updated for coding style
This commit is contained in:
parent
4631876089
commit
e7d4bb8d25
1 changed files with 4 additions and 5 deletions
|
@ -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}*'
|
||||
|
|
Loading…
Reference in a new issue