From bb12aac76aea4484ad341d8d2e00b4e01c42a8b3 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Wed, 12 Aug 2020 14:25:26 +0200 Subject: [PATCH] eclass/texlive-common.eclass: fix texlive-common_is_file_present_in_texmf. Function was not returning if the file was found or not. Always returned true. Fixes: [dcfc5829e7c027057d8] texlive-common.eclass: kill POSIXism Closes: https://bugs.gentoo.org/736872 Signed-off-by: Alexis Ballier --- eclass/texlive-common.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index 67e06adf0909d..1fe33444f1e56 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -64,6 +64,7 @@ texlive-common_is_file_present_in_texmf() { if [[ -d texmf-dist ]]; then find texmf-dist -name ${1} -exec touch ${mark} {} + || die fi + [ -f "${mark}" ] } # @FUNCTION: texlive-common_do_symlinks