actually catch the error from subprocess
This commit is contained in:
parent
0abdea5c86
commit
f48caa4b54
@ -143,7 +143,9 @@ class IsoBuild:
|
|||||||
self.iso_build()
|
self.iso_build()
|
||||||
|
|
||||||
self.log.info('Compose repo directory: %s' % sync_root)
|
self.log.info('Compose repo directory: %s' % sync_root)
|
||||||
self.log.info('ISO Build Logs: %s' % log_root)
|
self.log.info('ISO Build Logs: /var/lib/mock/{}-{}-{}/result'.format(
|
||||||
|
self.shortname, self.major_version, self.current_arch)
|
||||||
|
)
|
||||||
self.log.info('ISO Build completed.')
|
self.log.info('ISO Build completed.')
|
||||||
|
|
||||||
def build_repo_list(self):
|
def build_repo_list(self):
|
||||||
@ -264,9 +266,8 @@ class IsoBuild:
|
|||||||
lorax_cmd = '/bin/bash /var/tmp/isobuild.sh'
|
lorax_cmd = '/bin/bash /var/tmp/isobuild.sh'
|
||||||
self.log.info('Starting lorax...')
|
self.log.info('Starting lorax...')
|
||||||
|
|
||||||
try:
|
p = subprocess.call(shlex.split(lorax_cmd))
|
||||||
subprocess.call(shlex.split(lorax_cmd))
|
if p != 0:
|
||||||
except:
|
|
||||||
self.log.error('An error occured during execution.')
|
self.log.error('An error occured during execution.')
|
||||||
self.log.error('See the logs for more information.')
|
self.log.error('See the logs for more information.')
|
||||||
raise SystemExit()
|
raise SystemExit()
|
||||||
|
BIN
iso/py/__pycache__/common.cpython-310.pyc
Normal file
BIN
iso/py/__pycache__/common.cpython-310.pyc
Normal file
Binary file not shown.
BIN
iso/py/util/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
iso/py/util/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
iso/py/util/__pycache__/check.cpython-310.pyc
Normal file
BIN
iso/py/util/__pycache__/check.cpython-310.pyc
Normal file
Binary file not shown.
BIN
iso/py/util/__pycache__/dnf_utils.cpython-310.pyc
Normal file
BIN
iso/py/util/__pycache__/dnf_utils.cpython-310.pyc
Normal file
Binary file not shown.
BIN
iso/py/util/__pycache__/iso_utils.cpython-310.pyc
Normal file
BIN
iso/py/util/__pycache__/iso_utils.cpython-310.pyc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user