getsolus / solbuild

The Solus package build system
https://getsol.us
Apache License 2.0
19 stars 12 forks source link

Direct log output to stderr and hide progress bar when redirected #74

Closed silkeh closed 6 months ago

silkeh commented 6 months ago

After this change it is possible to differentiate between the log output from solbuild itself, and the output from commands executed by solbuild. This allows one to check the build result on the terminal and keep the redirected stdout for checking the reason for the build result. This is a follow-up of #54/#63.

Additionally, the progress bar is replaced by a log statement when redirected.

For example:

$ sudo solbuild build package.yml -p unstable-x86_64 > /tmp/output.log
 ✓ > Downloading source uri=https://www.nano-editor.org/dist/v7/nano-7.2.tar.xz
 ✓ > Now starting build package=nano
 ✓ > Building succeeded