From dbf1205104f11920b1447bb4401d807037e0fc11 Mon Sep 17 00:00:00 2001 From: Matthew Turk Date: Thu, 12 Sep 2002 07:20:19 +0000 Subject: Added much more robust file checking to several of these; hopefully this will clear up any outstanding issues with sgml catalogs. This should also fix the behavior seen in bug 6854. --- .../docbook-dsssl-stylesheets-1.77.ebuild | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'app-text/docbook-dsssl-stylesheets') diff --git a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild index 8e06ca328c5d..97ec4fc2d10e 100644 --- a/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild +++ b/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild,v 1.3 2002/08/16 02:42:01 murphy Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-1.77.ebuild,v 1.4 2002/09/12 07:20:18 satai Exp $ MY_P=${P/-stylesheets/} S=${WORKDIR}/${MY_P} @@ -45,11 +45,17 @@ pkg_postinst() { pkg_prerm() { if [ -x "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ] then - install-catalog --remove \ - /etc/sgml/dsssl-docbook-stylesheets.cat \ - /usr/share/sgml/docbook/dsssl-stylesheets-${PV}/catalog - install-catalog --remove \ - /etc/sgml/sgml-docbook.cat \ - /etc/sgml/dsssl-docbook-stylesheets.cat + if [ -e /etc/sgml/dsssl-docbook-stylesheets.cat ] + then + install-catalog --remove \ + /etc/sgml/dsssl-docbook-stylesheets.cat \ + /usr/share/sgml/docbook/dsssl-stylesheets-${PV}/catalog + fi + if [ -e /etc/sgml/sgml-docbook.cat ] + then + install-catalog --remove \ + /etc/sgml/sgml-docbook.cat \ + /etc/sgml/dsssl-docbook-stylesheets.cat + fi fi } -- cgit v1.2.3-65-gdbad