1 |
robbat2 10/03/31 19:33:16 |
2 |
|
3 |
Modified: linux-mod.eclass |
4 |
Log: |
5 |
Bug #312075: The ~ was getting expanded to the optional stuff got duplicated and that sucked, giving a bad warning sometimes. |
6 |
|
7 |
Revision Changes Path |
8 |
1.99 eclass/linux-mod.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?rev=1.99&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?rev=1.99&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?r1=1.98&r2=1.99 |
13 |
|
14 |
Index: linux-mod.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v |
17 |
retrieving revision 1.98 |
18 |
retrieving revision 1.99 |
19 |
diff -p -w -b -B -u -u -r1.98 -r1.99 |
20 |
--- linux-mod.eclass 17 Jan 2010 04:00:07 -0000 1.98 |
21 |
+++ linux-mod.eclass 31 Mar 2010 19:33:16 -0000 1.99 |
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/linux-mod.eclass,v 1.98 2010/01/17 04:00:07 robbat2 Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.99 2010/03/31 19:33:16 robbat2 Exp $ |
27 |
|
28 |
# Author(s): John Mylchreest <johnm@g.o>, |
29 |
# Stefan Schweizer <genstef@g.o> |
30 |
@@ -602,11 +602,10 @@ linux-mod_pkg_setup() { |
31 |
linux-mod_pkg_setup_binary() { |
32 |
debug-print-function ${FUNCNAME} $* |
33 |
local new_CONFIG_CHECK |
34 |
+ # ~ needs always to be quoted, else bash expands it. |
35 |
for config in $CONFIG_CHECK ; do |
36 |
- case ${config:0:1} in |
37 |
- ~) optional="" ;; |
38 |
- *) optional="~" ;; |
39 |
- esac |
40 |
+ optional='~' |
41 |
+ [[ ${config:0:1} == "~" ]] && optional='' |
42 |
new_CONFIG_CHECK="${new_CONFIG_CHECK} ${optional}${config}" |
43 |
done |
44 |
export CONFIG_CHECK="${new_CONFIG_CHECK}" |