From 7009a370c3390eb57f47bf9214159c009aa42bbd Mon Sep 17 00:00:00 2001 From: seppzer0 Date: Wed, 14 Feb 2024 20:58:57 +0200 Subject: [PATCH] hotfix: fix command output processing --- wrapper/models/kernel_builder.py | 2 +- wrapper/tools/commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wrapper/models/kernel_builder.py b/wrapper/models/kernel_builder.py index c73850d..fdba106 100755 --- a/wrapper/models/kernel_builder.py +++ b/wrapper/models/kernel_builder.py @@ -528,7 +528,7 @@ def _build(self) -> None: cmd1 = "make -j{} O=out {} "\ "ARCH=arm64 "\ "SUBARCH=arm64 "\ - "LLVM=1" \ + "LLVM=1 "\ "LLVM_IAS=1"\ .format(punits, self._defconfig) cmd2 = "make -j{} O=out "\ diff --git a/wrapper/tools/commands.py b/wrapper/tools/commands.py index f41cad6..83387de 100755 --- a/wrapper/tools/commands.py +++ b/wrapper/tools/commands.py @@ -33,7 +33,7 @@ def launch( result = subprocess.run(cmd, shell=True, check=True, stdout=cstdout, stderr=subprocess.STDOUT) # return only output if required if get_output is True: - return result.stdout.decode('utf-8').splitlines() + return result.stdout.decode('utf-8').rstrip() except Exception: msg.error(f"Error executing command: {cmd}") # if output stream is a file -- close it