From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JGNpo-0006Jn-Rs for garchives@archives.gentoo.org; Sun, 20 Jan 2008 00:14:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D763DE04A8; Sun, 20 Jan 2008 00:14:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id AADE5E04A8 for ; Sun, 20 Jan 2008 00:14:47 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 4366B65A82 for ; Sun, 20 Jan 2008 00:14:47 +0000 (UTC) Received: from aballier by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JGNpm-0001O3-7q for gentoo-commits@lists.gentoo.org; Sun, 20 Jan 2008 00:14:46 +0000 From: "Alexis Ballier (aballier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, aballier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: texlive-module.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: texlive-module.eclass X-VCS-Directories: eclass X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier Content-Type: text/plain; charset=utf8 Message-Id: Sender: Alexis Ballier Date: Sun, 20 Jan 2008 00:14:46 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: d482add3-2e1f-4c2b-9318-09d48913229a X-Archives-Hash: a9a02ff0d851685b1fef31b1ed52ac5a aballier 08/01/20 00:14:46 Modified: texlive-module.eclass Log: Check for texmf-update before trying to execute it, otherwise display a= warning, bug #206537 Revision Changes Path 1.7 eclass/texlive-module.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-mod= ule.eclass?rev=3D1.7&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-mod= ule.eclass?rev=3D1.7&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/texlive-mod= ule.eclass?r1=3D1.6&r2=3D1.7 Index: texlive-module.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- texlive-module.eclass 2 Dec 2007 22:47:10 -0000 1.6 +++ texlive-module.eclass 20 Jan 2008 00:14:45 -0000 1.7 @@ -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 20= 07/12/02 22:47:10 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/texlive-module.eclass,v 1.7 20= 08/01/20 00:14:45 aballier Exp $ =20 # # Original Author: Alexis Ballier @@ -114,14 +114,22 @@ # installed texmf trees. =20 texlive-module_pkg_postinst() { - if [ "$ROOT" =3D "/" ] ; then + if [ "$ROOT" =3D "/" ] && [ -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 } =20 texlive-module_pkg_postrm() { - if [ "$ROOT" =3D "/" ] ; then + if [ "$ROOT" =3D "/" ] && [ -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 } =20 --=20 gentoo-commits@lists.gentoo.org mailing list