summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-08-13 15:39:40 +0000
committerMike Frysinger <vapier@gentoo.org>2004-08-13 15:39:40 +0000
commitbd5243ead8bd09090f55028d8ad3b8afd1871d56 (patch)
treec69b1144b48c7edb998e3311d74b66b07a5030d7 /eclass
parentSee bug #59993 (Manifest recommit) (diff)
downloadgentoo-2-bd5243ead8bd09090f55028d8ad3b8afd1871d56.tar.gz
gentoo-2-bd5243ead8bd09090f55028d8ad3b8afd1871d56.tar.bz2
gentoo-2-bd5243ead8bd09090f55028d8ad3b8afd1871d56.zip
if given multiple patches, apply them all
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index e8aa704c6e6b..77d05dfd09ad 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.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/eutils.eclass,v 1.93 2004/08/10 01:11:14 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.94 2004/08/13 15:39:40 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -146,8 +146,12 @@ epatch() {
if [ "$#" -gt 1 ]
then
- eerror "Invalid arguments to epatch()"
- die "Invalid arguments to epatch()"
+ local m=""
+ einfo "${#} patches to apply..."
+ for m in "$@" ; do
+ epatch "${m}"
+ done
+ return 0
fi
if [ -n "$1" -a -f "$1" ]