From: Florian Schmaus <flow@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: tex@gentoo.org, Florian Schmaus <flow@gentoo.org>
Subject: [gentoo-dev] [PATCH 3/3] texlive-module.eclass: include PIPESTATUS in die message
Date: Mon, 20 May 2024 13:10:19 +0200 [thread overview]
Message-ID: <20240520111019.418462-3-flow@gentoo.org> (raw)
In-Reply-To: <20240520111019.418462-1-flow@gentoo.org>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
---
eclass/texlive-module.eclass | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 7d40bfc58994..98c28f578216 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -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 ||
--
2.44.1
next prev parent reply other threads:[~2024-05-20 11:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-20 11:10 [gentoo-dev] [PATCH 1/3] texlive-module.eclass: do not treat grep returning 1 as error Florian Schmaus
2024-05-20 11:10 ` [gentoo-dev] [PATCH 2/3] texlive-module.eclass: invoke doman with nonfatal Florian Schmaus
2024-05-20 11:10 ` Florian Schmaus [this message]
2024-05-20 16:35 ` [gentoo-dev] [PATCH 3/3] texlive-module.eclass: include PIPESTATUS in die message Ulrich Mueller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240520111019.418462-3-flow@gentoo.org \
--to=flow@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=tex@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox