1 |
commit: c321399add5dac4278bb7f7d52102dc34828036f |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 5 11:46:01 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 5 11:46:54 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c321399a |
7 |
|
8 |
texlive-common: replace -n with -z to trigged updates correctly |
9 |
|
10 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
11 |
|
12 |
eclass/texlive-common.eclass | 4 ++-- |
13 |
1 file changed, 2 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass |
16 |
index 8476b117eef..e9a2eee65bd 100644 |
17 |
--- a/eclass/texlive-common.eclass |
18 |
+++ b/eclass/texlive-common.eclass |
19 |
@@ -140,7 +140,7 @@ dobin_texmf_scripts() { |
20 |
|
21 |
etexmf-update() { |
22 |
if has_version 'app-text/texlive-core' ; then |
23 |
- if [ -n ${ROOT%/} ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then |
24 |
+ if [ -z "${ROOT%/}" ] && [ -x "${EPREFIX}"/usr/sbin/texmf-update ] ; then |
25 |
"${EPREFIX}"/usr/sbin/texmf-update |
26 |
else |
27 |
ewarn "Cannot run texmf-update for some reason." |
28 |
@@ -158,7 +158,7 @@ etexmf-update() { |
29 |
|
30 |
efmtutil-sys() { |
31 |
if has_version 'app-text/texlive-core' ; then |
32 |
- if [ -n ${ROOT%/} ] && [ -x "${EPREFIX}"/usr/bin/fmtutil-sys ] ; then |
33 |
+ if [ -z "${ROOT%/}" ] && [ -x "${EPREFIX}"/usr/bin/fmtutil-sys ] ; then |
34 |
einfo "Rebuilding formats" |
35 |
"${EPREFIX}"/usr/bin/fmtutil-sys --all &> /dev/null |
36 |
else |