summaryrefslogtreecommitdiff
path: root/scripts/build-packages
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-04-26 12:03:19 +0200
committerChristian Poessinger <christian@poessinger.com>2019-04-26 15:52:56 +0200
commit04334e26fbd693b4081048ccf5a244d282d4bc10 (patch)
tree0b5023026170984a3f3a8426cf87155bf6b8acd7 /scripts/build-packages
parent226a25dfdf9c7c21da405948e9de955388898d9c (diff)
downloadvyos-build-04334e26fbd693b4081048ccf5a244d282d4bc10.tar.gz
vyos-build-04334e26fbd693b4081048ccf5a244d282d4bc10.zip
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.
Diffstat (limited to 'scripts/build-packages')
-rwxr-xr-xscripts/build-packages5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build-packages b/scripts/build-packages
index 0677e9f..98b7ab4 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