if user has FEATURES=preserve-libs, then we will let portage handle the saving/warnin...
authorMike Frysinger <vapier@gentoo.org>
Fri, 15 Feb 2008 07:43:45 +0000 (07:43 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 15 Feb 2008 07:43:45 +0000 (07:43 +0000)
eclass/eutils.eclass

index ba23c33227c11b87b1cc3b1f2618043ff9389b23..6508d905010bfd33bea114e9afa5f21989c0a881 100644 (file)
@@ -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