summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-05-20 13:02:15 +0200
committerFlorian Schmaus <flow@gentoo.org>2024-05-21 10:58:08 +0200
commit0c2599b9db997df77af21ca8d3ce8da16e512649 (patch)
tree8ade223d264145b3efbf2563d7ed69e180a094ce
parenttexlive-module.eclass: do not treat grep returning 1 as error (diff)
downloadgentoo-0c2599b9db997df77af21ca8d3ce8da16e512649.tar.gz
gentoo-0c2599b9db997df77af21ca8d3ce8da16e512649.tar.bz2
gentoo-0c2599b9db997df77af21ca8d3ce8da16e512649.zip
texlive-module.eclass: invoke doman with nonfatal
In case doman fails, we do not want to die immediatly as it would "break" the ebegin/eend combination. Instead, the exit status is passed through xargs. It will then subsequently appear in PIPESTATUS, where it is processed by eend || die. Signed-off-by: Florian Schmaus <flow@gentoo.org> Suggested-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--eclass/texlive-module.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index b202a0188b66..7d40bfc58994 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -538,7 +538,7 @@ texlive-module_src_install() {
ebegin "Installing man pages"
find texmf-dist/doc/man -type f -name '*.[0-9n]' -print |
grep -v "${grep_expressions[@]}" |
- xargs -d '\n' --no-run-if-empty doman
+ xargs -d '\n' --no-run-if-empty nonfatal doman
# 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