commit:     bb12aac76aea4484ad341d8d2e00b4e01c42a8b3
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 12 12:25:26 2020 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Aug 12 12:25:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb12aac7

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 <aballier <AT> gentoo.org>

 eclass/texlive-common.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 67e06adf090..1fe33444f1e 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

Reply via email to