summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-01-20 00:14:45 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-01-20 00:14:45 +0000
commit6101417f100264a4c3ad643fc7b6513730faf046 (patch)
treebd437de11b9fc56176a90654a02351676b0c84f0 /eclass
parentRemove vulnerable versions for #204760 (diff)
downloadgentoo-2-6101417f100264a4c3ad643fc7b6513730faf046.tar.gz
gentoo-2-6101417f100264a4c3ad643fc7b6513730faf046.tar.bz2
gentoo-2-6101417f100264a4c3ad643fc7b6513730faf046.zip
Check for texmf-update before trying to execute it, otherwise display a warning, bug #206537
Diffstat (limited to 'eclass')
-rw-r--r--eclass/texlive-module.eclass14
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass
index 941376f96bfd..24145dde30a1 100644
--- a/eclass/texlive-module.eclass
+++ b/eclass/texlive-module.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.6 2007/12/02 22:47:10 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.7 2008/01/20 00:14:45 aballier Exp $
#
# Original Author: Alexis Ballier <aballier@gentoo.org>
@@ -114,14 +114,22 @@ texlive-module_src_install() {
# installed texmf trees.
texlive-module_pkg_postinst() {
- if [ "$ROOT" = "/" ] ; 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
}
texlive-module_pkg_postrm() {
- if [ "$ROOT" = "/" ] ; 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
}