Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/offload-build.in
diff options
context:
space:
mode:
authorChristian Heusel <christian@heusel.eu>2024-02-10 20:14:16 +0100
committerLevente Polyak <anthraxx@archlinux.org>2024-02-14 01:21:28 +0100
commite0a84aefc35a4716fa91c13ec1c3909b50fccd5c (patch)
tree124e171e5fd74961b5c525bf7219c82867604df7 /src/offload-build.in
parent98bd7e376091ef8a19d848f865521cb13fdfb577 (diff)
fix(common): check before using tput with a fallback for colors
The latest release of devtools has included some pretty printing capabilities and fancy terminal stuff with the spinner and so on. It seems like the existing safeguards to disable this for incapable terminals were not enough though, therefore we saw two types of errors: - offload-build: ``` ==> Building in chroot for [extra] (x86_64)... tput: unknown terminal "unknown" tput: unknown terminal "unknown" tput: unknown terminal "unknown" ``` - repro builders: ``` ==> Successfully switched <package> to version <version> tput: No value for $TERM and no -T specified ERROR: Failed checkout <package> ``` The recently included fail option made this error populate to the command level and therefore increased its impact from a not so nice logging message to a more severe problem which made the command abort. We fix this by checking if tput is supported or else use the raw escape sequences instead of tput commands. Fixes: fedfc80 ("feat(term): add terminal utils to handle a dynamic spinner") Fixes: 66e83c9 ("feat(version): pretty print and group together version check results") Fixes: d0dc0e1 ("feat(search): add optional plain output formatting") Signed-off-by: Christian Heusel <christian@heusel.eu>
Diffstat (limited to 'src/offload-build.in')
0 files changed, 0 insertions, 0 deletions