texlive-common: replace -n with -z to trigged updates correctly
authorMikle Kolyada <zlogene@gentoo.org>
Wed, 5 Jun 2019 11:46:01 +0000 (14:46 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Wed, 5 Jun 2019 11:46:54 +0000 (14:46 +0300)
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
eclass/texlive-common.eclass

index 8476b117eefff5a4d54f71990cba15e426a572af..e9a2eee65bd377dd57971c738d86998634d5a659 100644 (file)
@@ -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