1 |
betelgeuse 08/02/16 20:12:59 |
2 |
|
3 |
Modified: base.eclass |
4 |
Log: |
5 |
Add possibility to use bash arrays for PATCHES. |
6 |
|
7 |
Revision Changes Path |
8 |
1.33 eclass/base.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/base.eclass?rev=1.33&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/base.eclass?rev=1.33&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/base.eclass?r1=1.32&r2=1.33 |
13 |
|
14 |
Index: base.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/base.eclass,v |
17 |
retrieving revision 1.32 |
18 |
retrieving revision 1.33 |
19 |
diff -u -r1.32 -r1.33 |
20 |
--- base.eclass 12 Feb 2008 23:51:51 -0000 1.32 |
21 |
+++ base.eclass 16 Feb 2008 20:12:58 -0000 1.33 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2004 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.32 2008/02/12 23:51:51 betelgeuse Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.33 2008/02/16 20:12:58 betelgeuse Exp $ |
27 |
# |
28 |
# Author Dan Armak <danarmak@g.o> (nowadays retired) |
29 |
# |
30 |
@@ -34,10 +34,17 @@ |
31 |
debug-print-section autopatch |
32 |
debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES, PATCHES1=$PATCHES1" |
33 |
cd "${S}" |
34 |
- for x in $PATCHES $PATCHES1; do |
35 |
- debug-print "$FUNCNAME: autopatch: patching from ${x}" |
36 |
- epatch ${x} |
37 |
- done |
38 |
+ if [[ ${#PATCHES[@]} -gt 1 ]]; then |
39 |
+ for x in "${PATCHES[@]}"; do |
40 |
+ debug-print "$FUNCNAME: autopatch: patching from ${x}" |
41 |
+ epatch "${x}" |
42 |
+ done |
43 |
+ else |
44 |
+ for x in ${PATCHES} ${PATCHES1}; do |
45 |
+ debug-print "$FUNCNAME: autopatch: patching from ${x}" |
46 |
+ epatch "${x}" |
47 |
+ done |
48 |
+ fi |
49 |
;; |
50 |
all) |
51 |
debug-print-section all |
52 |
|
53 |
|
54 |
|
55 |
-- |
56 |
gentoo-commits@l.g.o mailing list |