From: Mikle Kolyada Date: Wed, 5 Jun 2019 11:46:01 +0000 (+0300) Subject: texlive-common: replace -n with -z to trigged updates correctly X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c321399add5dac4278bb7f7d52102dc34828036f;p=gentoo.git texlive-common: replace -n with -z to trigged updates correctly Signed-off-by: Mikle Kolyada --- 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