summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-06-05 14:46:01 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-06-05 14:46:54 +0300
commitc321399add5dac4278bb7f7d52102dc34828036f (patch)
tree5857d16667092a0953e252c998d635429a585fef /eclass/texlive-common.eclass
parentapp-text/sdcv: remove old (diff)
downloadgentoo-c321399add5dac4278bb7f7d52102dc34828036f.tar.gz
gentoo-c321399add5dac4278bb7f7d52102dc34828036f.tar.bz2
gentoo-c321399add5dac4278bb7f7d52102dc34828036f.zip
texlive-common: replace -n with -z to trigged updates correctly
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'eclass/texlive-common.eclass')
-rw-r--r--eclass/texlive-common.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 8476b117eeff..e9a2eee65bd3 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -140,7 +140,7 @@ dobin_texmf_scripts() {
etexmf-update() {
if has_version 'app-text/texlive-core' ; then
- if [ -n ${ROOT%/} ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then
+ if [ -z "${ROOT%/}" ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then
"${EPREFIX}"/usr/sbin/texmf-update
else
ewarn "Cannot run texmf-update for some reason."
@@ -158,7 +158,7 @@ etexmf-update() {
efmtutil-sys() {
if has_version 'app-text/texlive-core' ; then
- if [ -n ${ROOT%/} ] && [ -x "${EPREFIX}"/usr/bin/fmtutil-sys ] ; then
+ if [ -z "${ROOT%/}" ] && [ -x "${EPREFIX}"/usr/bin/fmtutil-sys ] ; then
einfo "Rebuilding formats"
"${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null
else