|
|
@ -57,9 +57,13 @@ class Processor:
|
|
|
|
|
|
|
|
|
|
|
|
# write the output to the log file so the packager can see what
|
|
|
|
# write the output to the log file so the packager can see what
|
|
|
|
# happened during the installation process
|
|
|
|
# happened during the installation process
|
|
|
|
|
|
|
|
try:
|
|
|
|
with open(log_path, 'a') as log:
|
|
|
|
with open(log_path, 'a') as log:
|
|
|
|
log.write(proc.stdout.decode('utf-8'))
|
|
|
|
log.write(proc.stdout.decode('utf-8'))
|
|
|
|
log.flush()
|
|
|
|
log.flush()
|
|
|
|
|
|
|
|
except Exception as e:
|
|
|
|
|
|
|
|
logger.warning("failed to write to the log file: %s" % e)
|
|
|
|
|
|
|
|
logger.warning("the output of the commands is: %s" % proc.stdout)
|
|
|
|
|
|
|
|
|
|
|
|
if proc.returncode != 0:
|
|
|
|
if proc.returncode != 0:
|
|
|
|
logger.critical(
|
|
|
|
logger.critical(
|
|
|
|