From 1cf5c64fdc5319b732fb5f39f30167da7dc517a1 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 9 Feb 2022 16:46:50 +0100 Subject: [PATCH] Removed debug information --- archinstall/lib/general.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 1801aed1..c9277cf4 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -280,14 +280,13 @@ class SysCommandWorker: raise AssertionError(f"SysCommandWorker().write() requires bytes data to be written, not type({type(data)}).") self.make_sure_we_are_executing() + if self.child_fd: + written_data = os.write(self.child_fd, data + (b'\n' if line_ending else b'')) - if self.child_fd: - written_data = os.write(self.child_fd, data + (b'\n' if line_ending else b'')) + # sys.stdout.flush() # <- Doesn't help + # os.fsync(self.child_fd) # <-- Will generate OSError: [Error 22] Invalid argument - # sys.stdout.flush() # <- Doesn't help - # os.fsync(self.child_fd) # <-- Will generate OSError: [Error 22] Invalid argument - - return written_data + return written_data return 0