From 8428a22f131159b7ef8271b4117bbf31a38c7775 Mon Sep 17 00:00:00 2001 From: Carsten Lohrke Date: Mon, 18 Jul 2005 10:04:43 +0000 Subject: Let's be a bit more careful what to rm -fR in pkg_preinst(). (Portage version: 2.0.51.22-r1) --- net-print/cups/ChangeLog | 5 ++++- net-print/cups/cups-1.1.23-r4.ebuild | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'net-print') diff --git a/net-print/cups/ChangeLog b/net-print/cups/ChangeLog index 790fd96be113..8b2dab7be87b 100644 --- a/net-print/cups/ChangeLog +++ b/net-print/cups/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-print/cups # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.135 2005/06/12 13:07:18 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/ChangeLog,v 1.136 2005/07/18 10:04:43 carlo Exp $ + + 18 Jul 2005; Carsten Lohrke cups-1.1.23-r4.ebuild: + Let's be a bit more careful what to rm -fR in pkg_preinst(). 12 Jun 2005; Heinrich Wendel cups-1.1.23-r3.ebuild, cups-1.1.23-r4.ebuild: diff --git a/net-print/cups/cups-1.1.23-r4.ebuild b/net-print/cups/cups-1.1.23-r4.ebuild index 188a97b96734..9a2cfcba3182 100644 --- a/net-print/cups/cups-1.1.23-r4.ebuild +++ b/net-print/cups/cups-1.1.23-r4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r4.ebuild,v 1.5 2005/06/13 22:29:15 lanius Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/cups/cups-1.1.23-r4.ebuild,v 1.6 2005/07/18 10:04:43 carlo Exp $ inherit eutils flag-o-matic pam @@ -134,7 +134,7 @@ src_install() { pkg_preinst() { # cleanups - rm -fR /usr/share/doc/${PN}* + [ -n "${PN}" ] && rm -fR /usr/share/doc/${PN}-* } pkg_postinst() { -- cgit v1.2.3-65-gdbad