Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-22 19:58:40 +0200
committerAnton Hvornum <anton@hvornum.se>2021-05-22 19:58:40 +0200
commitf2e7b1440a0ad7c04bd7540b13eddd1f1f0069b7 (patch)
tree017fe91f686111fb961b8a87f84edd3b3efb8b8b /archinstall/lib
parente5c8a187522e89bf0b21cddff32ecb56b8d99ca1 (diff)
Since SysCommand() wraps SysCommandWorker(), but SysCommand() doesn't use contexts, we have to flush the output manually here to avoid newlines not being before the next output.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/general.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index 249c7890..3b62c891 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -333,6 +333,10 @@ class SysCommand:
while self.session.ended is None:
self.session.poll()
+ if self.peak_output:
+ sys.stdout.write('\n')
+ sys.stdout.flush()
+
except SysCallError:
return False