summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonnie Berkholz <dberkholz@gentoo.org>2008-04-13 04:44:16 +0000
committerDonnie Berkholz <dberkholz@gentoo.org>2008-04-13 04:44:16 +0000
commit62483ab494995ed257acec56f3eb04d4a4bc5488 (patch)
tree8d59bfb154e50d1d95f16da9d7df852f8e3c92b9 /eclass/x-modular.eclass
parentMark amd64 stable. (diff)
downloadhistorical-62483ab494995ed257acec56f3eb04d4a4bc5488.tar.gz
historical-62483ab494995ed257acec56f3eb04d4a4bc5488.tar.bz2
historical-62483ab494995ed257acec56f3eb04d4a4bc5488.zip
Allow PATCHES to be an array. Based on change in ruby-gnome2.eclass.
Diffstat (limited to 'eclass/x-modular.eclass')
-rw-r--r--eclass/x-modular.eclass13
1 files changed, 8 insertions, 5 deletions
diff --git a/eclass/x-modular.eclass b/eclass/x-modular.eclass
index 9db29dcc8ec5..1251e1a2eb1d 100644
--- a/eclass/x-modular.eclass
+++ b/eclass/x-modular.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.94 2008/03/09 05:20:30 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/x-modular.eclass,v 1.95 2008/04/13 04:44:16 dberkholz Exp $
#
# @ECLASS: x-modular.eclass
# @MAINTAINER:
@@ -282,10 +282,13 @@ x-modular_patch_source() {
# If you have any patches to apply, set PATCHES to their locations and epatch
# will apply them. It also handles epatch-style bulk patches, if you know how to
# use them and set the correct variables. If you don't, read eutils.eclass.
- if [[ -n "${PATCHES}" ]] ; then
- for PATCH in ${PATCHES}
- do
- epatch ${PATCH}
+ if [[ ${#PATCHES[@]} -gt 1 ]]; then
+ for x in "${PATCHES[@]}"; do
+ epatch "${x}"
+ done
+ elif [[ -n "${PATCHES}" ]]; then
+ for x in ${PATCHES}; do
+ epatch "${x}"
done
# For non-default directory bulk patching
elif [[ -n "${PATCH_LOC}" ]] ; then