commit: 7b6015c3d26ed4acdc4360d74dbe8b6d88cc9ad2
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 23 19:23:39 2020 +0000
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Sun Feb 23 19:25:28 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b6015c3
texlive-module:eclass correct missing if block
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
eclass/texlive-module.eclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 3f31f35e1ab..5c4dec838d7 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -163,7 +163,11 @@ texlive-module_add_format() {
local name engine mode patterns options
eval $@
einfo "Appending to format.${PN}.cnf for $@"
- [[ -d texmf-dist/fmtutil ]] || mkdir -p texmf-dist/fmtutil || die
+
+ if [[ ! -d texmf-dist/fmtutil ]]; then
+ mkdir -p texmf-dist/fmtutil || die
+ fi
+
[[ -f texmf-dist/fmtutil/format.${PN}.cnf ]] || { echo "# Generated for
${PN} by texlive-module.eclass" > texmf-dist/fmtutil/format.${PN}.cnf; }
[[ -n ${TEXLIVE_MODULE_OPTIONAL_ENGINE} ]] && has ${engine}
${TEXLIVE_MODULE_OPTIONAL_ENGINE} && use !${engine} && mode="disabled"
if [[ ${mode} = disabled ]]; then