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
commit3f9bc1943bd669fb9cc9c3be824e0b79b7c34585 (patch)
tree066d0067310f9b60fcbd7a7b1560239f9928783c /eclass
parentRemove vulnerable versions for #204760 (diff)
downloadhistorical-3f9bc1943bd669fb9cc9c3be824e0b79b7c34585.tar.gz
historical-3f9bc1943bd669fb9cc9c3be824e0b79b7c34585.tar.bz2
historical-3f9bc1943bd669fb9cc9c3be824e0b79b7c34585.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
}