[elbe-devel] [PATCH] commands: check_updates: Flush console output before starting script
Manuel Traut
manuel.traut at linutronix.de
Mon Jul 3 14:52:27 CEST 2017
Hi Holger,
> The "elbe check_updates" sub-command optionally runs a scritp, if a missing or
> updatable package is detected. If STDOUT and/or STDERR is redirected to a file
> and the script want to access it, no information is contained in this file.
>
> Flushing stdout and stderr before executing the scripts solves this problem.
>
> Signed-off-by: Holger Dengler <dengler at linutronix.de>
thx! it is merged in devel/elbe-2.0
Manuel
> ---
> elbepack/commands/check_updates.py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/elbepack/commands/check_updates.py b/elbepack/commands/check_updates.py
> index 5e128631..c3e9930a 100644
> --- a/elbepack/commands/check_updates.py
> +++ b/elbepack/commands/check_updates.py
> @@ -109,6 +109,8 @@ def run_command( argv ):
> print pname, "%s != %s" % (pver, cver)
> required_updates += 1
>
> + sys.stdout.flush()
> + sys.stderr.flush()
> if errors > 0:
> print errors, "Errors occured, xml files needs fixing"
> if opt.script:
> --
> 2.13.2
>
More information about the elbe-devel
mailing list