texlive-module.eclass: include PIPESTATUS in die message

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus 2024-05-20 13:04:55 +02:00
parent 0c2599b9db
commit 66780befaf
No known key found for this signature in database
GPG Key ID: 2239A7E8F5852052

View File

@ -539,11 +539,12 @@ texlive-module_src_install() {
find texmf-dist/doc/man -type f -name '*.[0-9n]' -print |
grep -v "${grep_expressions[@]}" |
xargs -d '\n' --no-run-if-empty nonfatal doman
local pipestatus="${PIPESTATUS[*]}"
# The grep in the middle of the pipe may return 1 in case
# everything from the input is dropped.
# See https://bugs.gentoo.org/931994
[[ "${PIPESTATUS[*]}" == "0 "[01]" 0" ]]
eend $? || die "error installing man pages"
[[ ${pipestatus} == "0 "[01]" 0" ]]
eend $? || die "error installing man pages (pipestatus: ${pipestatus})"
# Delete all man pages under texmf-dist/doc/man
find texmf-dist/doc/man -type f -name '*.[0-9n]' -delete ||