From: Mike Frysinger Date: Fri, 15 Feb 2008 07:43:45 +0000 (+0000) Subject: if user has FEATURES=preserve-libs, then we will let portage handle the saving/warnin... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=033b22a0ff4c1118b5e7f693c64c0612162fa543;p=gentoo.git if user has FEATURES=preserve-libs, then we will let portage handle the saving/warning of the libraries #210182 --- diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index ba23c33227c1..6508d905010b 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.296 2008/02/13 20:50:06 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.297 2008/02/15 07:43:45 vapier Exp $ # @ECLASS: eutils.eclass # @MAINTAINER: @@ -1585,6 +1585,9 @@ preserve_old_lib() { fi [[ -z $1 ]] && die "Usage: preserve_old_lib [more libraries to preserve]" + # let portage worry about it + has preserve-libs ${FEATURES} && return 0 + local lib dir for lib in "$@" ; do [[ -e ${ROOT}/${lib} ]] || continue @@ -1605,6 +1608,9 @@ preserve_old_lib_notify() { die "Invalid preserve_old_lib_notify() usage" fi + # let portage worry about it + has preserve-libs ${FEATURES} && return 0 + local lib notice=0 for lib in "$@" ; do [[ -e ${ROOT}/${lib} ]] || continue