bin/update/create_partial_update.py | 1 + 1 file changed, 1 insertion(+)
New commits: commit 514200a3316f1542a8142b72e3fda80de6bef149 Author: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> AuthorDate: Thu Mar 6 17:27:20 2025 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Fri Mar 7 14:39:13 2025 +0100 create-mar: flush stdout to see the message when using 2>&1 | tee log in case the script is aborted/fails otherwise and doesn't remove the lockfile, another attempt to obtain the lock ends up in an endless loop No problem if the user sees the corresponing messages, but when using shell redirection of stdout and stderr and trying to tee that to a logfile, the message is never seen/the buffers are not flushed So force flushing stdout to have the message show up in the terminal Change-Id: Ib133b9bc523d9ba2210564f75762258f41415f71 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182595 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> (cherry picked from commit 55b13db9f18a945bb5e61e14a462f5770ce99d66) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182619 diff --git a/bin/update/create_partial_update.py b/bin/update/create_partial_update.py index 8dfa370e5fa7..dda6684d040b 100755 --- a/bin/update/create_partial_update.py +++ b/bin/update/create_partial_update.py @@ -22,6 +22,7 @@ def waitforlock(lockfile): break except OSError: print("waiting for lockfile/msiexec already running, sleeping 10s") + sys.stdout.flush() time.sleep(10) def releaselock(lockfile):