summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-02-23 22:23:39 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-02-23 22:25:28 +0300
commit7b6015c3d26ed4acdc4360d74dbe8b6d88cc9ad2 (patch)
tree7c0b683157764c7d696b8b8ea770680c66fb8e3b /eclass/texlive-module.eclass
parentapp-crypt/tpm2-abrmd: fix RDEPEND (diff)
downloadgentoo-7b6015c3d26ed4acdc4360d74dbe8b6d88cc9ad2.tar.gz
gentoo-7b6015c3d26ed4acdc4360d74dbe8b6d88cc9ad2.tar.bz2
gentoo-7b6015c3d26ed4acdc4360d74dbe8b6d88cc9ad2.zip
texlive-module:eclass correct missing if block
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'eclass/texlive-module.eclass')
-rw-r--r--eclass/texlive-module.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 3f31f35e1abb..5c4dec838d77 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