diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-11-11 21:36:45 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-11-11 21:36:45 +0000 |
commit | c7e00b4faeea2bc00fdd255aa8b536e51077d0e7 (patch) | |
tree | 8233a356caa482f9fb0d8b568adbade2b341d0ab /eclass/eutils.eclass | |
parent | new version (diff) | |
download | gentoo-2-c7e00b4faeea2bc00fdd255aa8b536e51077d0e7.tar.gz gentoo-2-c7e00b4faeea2bc00fdd255aa8b536e51077d0e7.tar.bz2 gentoo-2-c7e00b4faeea2bc00fdd255aa8b536e51077d0e7.zip |
do only local changes to EPATCH_SUFFIX and EPATCH_SOURCE in epatch()
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r-- | eclass/eutils.eclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 65437b2b9833..e71c73c7d2ad 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,7 +1,7 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Author: Martin Schlemmer <azarah@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.3 2002/11/11 19:51:20 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.4 2002/11/11 21:36:45 azarah Exp $ # This eclass is for general purpose functions that most ebuilds # have to implement themselfs. # @@ -96,6 +96,7 @@ epatch() { local PIPE_CMD="" local STDERR_TARGET="${T}/$$.out" local SINGLE_PATCH="no" + local x="" if [ "$#" -gt 1 ] then @@ -107,14 +108,14 @@ epatch() { then SINGLE_PATCH="yes" - EPATCH_SOURCE="$1" - EPATCH_SUFFIX="${1##*\.}" + local EPATCH_SOURCE="$1" + local EPATCH_SUFFIX="${1##*\.}" elif [ -n "$1" -a -d "$1" ] then - EPATCH_SOURCE="$1/*.${EPATCH_SUFFIX}" + local EPATCH_SOURCE="$1/*.${EPATCH_SUFFIX}" else - EPATCH_SOURCE="${EPATCH_SOURCE}/*.${EPATCH_SUFFIX}" + local EPATCH_SOURCE="${EPATCH_SOURCE}/*.${EPATCH_SUFFIX}" fi case ${EPATCH_SUFFIX##*\.} in |