From 04334e26fbd693b4081048ccf5a244d282d4bc10 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 26 Apr 2019 12:03:19 +0200 Subject: Packages: fix missing bytes stuck in the output buffer A last read() was missing to the temporary files when reporting errors after a command was executed. --- scripts/build-packages | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/build-packages b/scripts/build-packages index 0677e9f7..98b7ab48 100755 --- a/scripts/build-packages +++ b/scripts/build-packages @@ -82,6 +82,11 @@ def call(bashCommand, log, **kwargs): else: log.info(lines.decode().rstrip('\n')) + + # A last write needed after subprocess ends + log.debug(output.read().decode().rstrip('\n')) + log.info(error.read().decode().rstrip('\n')) + error.close() output.close() return sub.returncode -- cgit v1.2.3