summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-05-20 13:00:27 +0200
committerFlorian Schmaus <flow@gentoo.org>2024-05-21 10:58:07 +0200
commit90b41ec50f152da26b8c8d4004d38d7cd4b3dd53 (patch)
tree5ccf67ed91549150a5f7bb08e376415f1ae6df0e /eclass/texlive-module.eclass
parentsci-geosciences/josm-bin: drop old (diff)
downloadgentoo-90b41ec50f152da26b8c8d4004d38d7cd4b3dd53.tar.gz
gentoo-90b41ec50f152da26b8c8d4004d38d7cd4b3dd53.tar.bz2
gentoo-90b41ec50f152da26b8c8d4004d38d7cd4b3dd53.zip
texlive-module.eclass: do not treat grep returning 1 as error
In case every man page of the dev-texlive/* package is filtered, because the man pages are already installed by texlive-core, grep returns an exit status of 1, which we must not treat as an error condition. Adjust the PIPESTATUS comparison accordingly. Closes: https://bugs.gentoo.org/931994 Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'eclass/texlive-module.eclass')
-rw-r--r--eclass/texlive-module.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 0daca41961ff..b202a0188b66 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -539,7 +539,10 @@ 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 doman
- [[ "${PIPESTATUS[*]}" =~ ^0(" 0")*$ ]]
+ # 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"
# Delete all man pages under texmf-dist/doc/man