diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 07:43:45 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-02-15 07:43:45 +0000 |
commit | 3cecf2a8eca0a00c67a70a6f4f95f2bf8b106a78 (patch) | |
tree | 5038142bd02fa771e82378c9ae4e12ddc5f09382 /eclass/eutils.eclass | |
parent | add app-editors/efte (diff) | |
download | gentoo-2-3cecf2a8eca0a00c67a70a6f4f95f2bf8b106a78.tar.gz gentoo-2-3cecf2a8eca0a00c67a70a6f4f95f2bf8b106a78.tar.bz2 gentoo-2-3cecf2a8eca0a00c67a70a6f4f95f2bf8b106a78.zip |
if user has FEATURES=preserve-libs, then we will let portage handle the saving/warning of the libraries #210182
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r-- | eclass/eutils.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
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 <library to preserve> [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 |