mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Merge methods
This commit is contained in:
parent
cd12158c84
commit
771b152189
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue