diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-09-07 10:40:28 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2005-09-07 10:40:28 +0000 |
commit | a4207bd706985556073271564072066508434a44 (patch) | |
tree | 60562db2f53e39023be8bdabec24cc77a53ebd9b /eclass | |
parent | Added 3.5_alpha1 split ebuild. (diff) | |
download | gentoo-2-a4207bd706985556073271564072066508434a44.tar.gz gentoo-2-a4207bd706985556073271564072066508434a44.tar.bz2 gentoo-2-a4207bd706985556073271564072066508434a44.zip |
Use epatch instead of patch, as discussed on gentoo-dev.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/base.eclass | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/eclass/base.eclass b/eclass/base.eclass index 9d77ea343738..2bece4b1dba7 100644 --- a/eclass/base.eclass +++ b/eclass/base.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.27 2005/07/11 15:08:06 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.28 2005/09/07 10:40:28 flameeyes Exp $ # # Author Dan Armak <danarmak@gentoo.org> # @@ -27,19 +27,15 @@ base_src_unpack() { patch) debug-print-section patch cd ${S} - patch -p0 < ${FILESDIR}/${P}-gentoo.diff + epatch ${FILESDIR}/${P}-gentoo.diff ;; autopatch) debug-print-section autopatch debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES, PATCHES1=$PATCHES1" cd ${S} - for x in $PATCHES; do + for x in $PATCHES $PATCHES1; do debug-print "$FUNCNAME: autopatch: patching from ${x}" - patch -p0 < ${x} - done - for x in $PATCHES1; do - debug-print "$FUNCNAME: autopatch: patching -p1 from ${x}" - patch -p1 < ${x} + epatch ${x} done ;; all) |