Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: savedconfig.eclass
Date: Tue, 26 Jul 2011 17:35:36
Message-Id: 20110726173512.149132004B@flycatcher.gentoo.org
1 zmedico 11/07/26 17:35:12
2
3 Modified: savedconfig.eclass
4 Log:
5 Add EAPI 3 prefix compatibility.
6
7 Revision Changes Path
8 1.15 eclass/savedconfig.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/savedconfig.eclass?rev=1.15&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/savedconfig.eclass?rev=1.15&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/savedconfig.eclass?r1=1.14&r2=1.15
13
14 Index: savedconfig.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v
17 retrieving revision 1.14
18 retrieving revision 1.15
19 diff -u -r1.14 -r1.15
20 --- savedconfig.eclass 5 Oct 2010 19:51:05 -0000 1.14
21 +++ savedconfig.eclass 26 Jul 2011 17:35:12 -0000 1.15
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2007 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v 1.14 2010/10/05 19:51:05 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/savedconfig.eclass,v 1.15 2011/07/26 17:35:12 zmedico Exp $
27
28 # @ECLASS: savedconfig.eclass
29 # @MAINTAINER:
30 @@ -29,16 +29,17 @@
31 if [[ ${EBUILD_PHASE} != "install" ]]; then
32 die "Bad package! save_config only for use in src_install functions!"
33 fi
34 + [[ -z "${ED}" ]] && ED=${D}
35 case $# in
36 0) die "Tell me what to save"
37 ;;
38 1) if [[ -f "$1" ]]; then
39 dodir /etc/portage/savedconfig/${CATEGORY}
40 - cp "$1" "${D}"/etc/portage/savedconfig/${CATEGORY}/${PF} \
41 + cp "$1" "${ED}"/etc/portage/savedconfig/${CATEGORY}/${PF} \
42 || die "Failed to save $1"
43 else
44 dodir /etc/portage/savedconfig/${CATEGORY}/${PF}
45 - treecopy "$1" "${D}"/etc/portage/savedconfig/${CATEGORY}/${PF} \
46 + treecopy "$1" "${ED}"/etc/portage/savedconfig/${CATEGORY}/${PF} \
47 || die "Failed to save $1"
48 fi
49 ;;