[Buildroot] [PATCH v2 1/1] pkg-utils: mask tput failure for non-interactive sessions

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Feb 21 17:31:46 UTC 2016


Dear James Knight,

On Sun, 21 Feb 2016 11:04:58 -0500, James Knight wrote:
> When invoking a build from a non-interactive session (for example, a
> Jenkins build), there is no terminal session to modify. When preparing
> variables to track the bold and boldoff mode sequences, the `tput`
> command will always fail as there is no terminal to query. The following
> change masks the error message when `tput` fails; leaving the TERM_BOLD
> and TERM_RESET variables empty.
> 
> Signed-off-by: James Knight <james.d.knight at live.com>
> ---
> Changes v1 -> v2:
>   - Removed space in stderr redirection (suggested by Yann E. MORIN).
> ---
>  package/pkg-utils.mk | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list