Merge methods

This commit is contained in:
Dimitris Zlatanidis 2023-01-02 18:06:43 +02:00
parent cd12158c84
commit 771b152189

View file

@ -199,9 +199,10 @@ class Slackbuilds:
self.utils.is_installed(package[:-4])):
execute = self.configs.reinstall
print(f'Installing the {package}')
print(f'Installing the {package} ', end='')
command = f'{execute} {self.configs.tmp_path}/{package}'
self.process(command)
print('Done')
def creating_package_for_install(self, name: str):
""" Creating a list with all the finished packages for
@ -230,11 +231,12 @@ class Slackbuilds:
if '--jobs' in self.flags:
self.set_makeflags()
print(f'Build the {name}.SlackBuild')
print(f'Build the {name}.SlackBuild ', end='')
stdout = self.process(execute)
if stdout > 0:
raise SystemExit(stdout)
print('Done')
@staticmethod
def set_makeflags():
@ -255,6 +257,7 @@ class Slackbuilds:
md5sum.check(path, source, checksum, name)
def process(self, command):
""" Processes execution. """
stderr = None
stdout = None