diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-07-26 17:35:12 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-07-26 17:35:12 +0000 |
commit | 1596dbda010af53d59bce85785b210aafe4f05d2 (patch) | |
tree | a276918cd9ada49bf2a3b3324e61b68946cab139 /eclass | |
parent | Version bump (diff) | |
download | historical-1596dbda010af53d59bce85785b210aafe4f05d2.tar.gz historical-1596dbda010af53d59bce85785b210aafe4f05d2.tar.bz2 historical-1596dbda010af53d59bce85785b210aafe4f05d2.zip |
Add EAPI 3 prefix compatibility.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/savedconfig.eclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/savedconfig.eclass b/eclass/savedconfig.eclass index 0271104743ed..5dd6f5f741ef 100644 --- a/eclass/savedconfig.eclass +++ b/eclass/savedconfig.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/savedconfig.eclass,v 1.14 2010/10/05 19:51:05 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v 1.15 2011/07/26 17:35:12 zmedico Exp $ # @ECLASS: savedconfig.eclass # @MAINTAINER: @@ -29,16 +29,17 @@ save_config() { if [[ ${EBUILD_PHASE} != "install" ]]; then die "Bad package! save_config only for use in src_install functions!" fi + [[ -z "${ED}" ]] && ED=${D} case $# in 0) die "Tell me what to save" ;; 1) if [[ -f "$1" ]]; then dodir /etc/portage/savedconfig/${CATEGORY} - cp "$1" "${D}"/etc/portage/savedconfig/${CATEGORY}/${PF} \ + cp "$1" "${ED}"/etc/portage/savedconfig/${CATEGORY}/${PF} \ || die "Failed to save $1" else dodir /etc/portage/savedconfig/${CATEGORY}/${PF} - treecopy "$1" "${D}"/etc/portage/savedconfig/${CATEGORY}/${PF} \ + treecopy "$1" "${ED}"/etc/portage/savedconfig/${CATEGORY}/${PF} \ || die "Failed to save $1" fi ;; |