diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-04-26 12:03:19 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-04-26 15:52:56 +0200 |
commit | 04334e26fbd693b4081048ccf5a244d282d4bc10 (patch) | |
tree | 0b5023026170984a3f3a8426cf87155bf6b8acd7 /scripts/build-packages | |
parent | 226a25dfdf9c7c21da405948e9de955388898d9c (diff) | |
download | vyos-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-x | scripts/build-packages | 5 |
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 |