diff options
author | Alexis Ballier <aballier@gentoo.org> | 2012-10-17 12:55:42 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2012-10-17 12:55:42 +0000 |
commit | 7f5ddc5f0208ddafb48bbae38ddc86045d3e12ee (patch) | |
tree | caa534c83124585cef0a8a62e805272d5d2e4443 /eclass/texlive-common.eclass | |
parent | added prefix support (bug #434514) (diff) | |
download | gentoo-2-7f5ddc5f0208ddafb48bbae38ddc86045d3e12ee.tar.gz gentoo-2-7f5ddc5f0208ddafb48bbae38ddc86045d3e12ee.tar.bz2 gentoo-2-7f5ddc5f0208ddafb48bbae38ddc86045d3e12ee.zip |
do not warn in etexmf-update if we have not yet installed texlive-core, like when installing kpathsea, bug #429682
Diffstat (limited to 'eclass/texlive-common.eclass')
-rw-r--r-- | eclass/texlive-common.eclass | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass index ee055dc9ead8..f4d317d583f0 100644 --- a/eclass/texlive-common.eclass +++ b/eclass/texlive-common.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.17 2012/03/30 13:50:39 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-common.eclass,v 1.18 2012/10/17 12:55:42 aballier Exp $ # @ECLASS: texlive-common.eclass # @MAINTAINER: @@ -132,11 +132,13 @@ dobin_texmf_scripts() { # function helps in factorizing some code. etexmf-update() { - if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then - /usr/sbin/texmf-update - else - ewarn "Cannot run texmf-update for some reason." - ewarn "Your texmf tree might be inconsistent with your configuration" - ewarn "Please try to figure what has happened" + if has_version 'app-text/texlive-core' ; then + if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then + /usr/sbin/texmf-update + else + ewarn "Cannot run texmf-update for some reason." + ewarn "Your texmf tree might be inconsistent with your configuration" + ewarn "Please try to figure what has happened" + fi fi } |