summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Thomas Witt <pyromaniac@exherbo.org> 2015-07-10 13:31:45 +0200
committerAvatar Wulf C. Krueger <philantrop@exherbo.org> 2015-07-25 13:51:40 +0200
commit69f6029d09edfc0b3fceff9067cb4741337d9c20 (patch)
treec6b2d561978031f2e379aca96f7b8bf0624a8fe5
parent6108068c07cf93da56b314de8553b4ceffa5c932 (diff)
downloadtexlive-69f6029d09edfc0b3fceff9067cb4741337d9c20.tar.gz
texlive-69f6029d09edfc0b3fceff9067cb4741337d9c20.tar.xz
texlive-common: fix etexmf-update
Change-Id: I2f4ebb438d33f601ebb270cc08ff04ef6d61b388 Reviewed-on: https://galileo.mailstation.de/gerrit/2864 Reviewed-by: Arthur Nascimento <tureba@gmail.com> Reviewed-by: Wulf C. Krueger <philantrop@exherbo.org>
-rw-r--r--exlibs/texlive-common.exlib18
1 files changed, 8 insertions, 10 deletions
diff --git a/exlibs/texlive-common.exlib b/exlibs/texlive-common.exlib
index 0d55c39..76313fa 100644
--- a/exlibs/texlive-common.exlib
+++ b/exlibs/texlive-common.exlib
@@ -137,16 +137,14 @@ dobin_texmf_scripts() {
# Runs texmf-update if it is available and prints a warning otherwise. This
# function helps in factorizing some code.
etexmf-update() {
- if has_version 'app-text/texlive-core' ; then
- if [[ ${ROOT} == / && -x /usr/$(exhost --target)/bin/texmf-update ]]; then
- nonfatal edo touch /usr/share/texmf-dist/tex/generic/config/language.{dat,dat.lua,def} ||
- eerror "touch for texmf-update failed"
- nonfatal edo /usr/$(exhost --target)/bin/texmf-update || eerror "texmf-update failed"
- else
- ewarn "Cannot run texmf-update for some reason."
- ewarn "Your texmf tree might be inconsistent with your configuration"
- ewarn "Please try to figure out what has happened"
- fi
+ if [[ ${ROOT} == / && -x /usr/$(exhost --target)/bin/texmf-update ]]; then
+ nonfatal edo touch /usr/share/texmf-dist/tex/generic/config/language.{dat,dat.lua,def} ||
+ eerror "touch for texmf-update failed"
+ nonfatal edo /usr/$(exhost --target)/bin/texmf-update || eerror "texmf-update failed"
+ else
+ ewarn "Cannot run texmf-update for some reason."
+ ewarn "Your texmf tree might be inconsistent with your configuration"
+ ewarn "Please try to figure out what has happened"
fi
}