diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2010-01-17 04:00:07 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2010-01-17 04:00:07 +0000 |
commit | 93bfecced470f9ce67a9c356325cfe2055954904 (patch) | |
tree | 3cb1aafdc090cda17cc00d2d07badb1ece588b07 /eclass | |
parent | Bug #286292: Try to make kernel module binpkgs NOT need kernel sources by usi... (diff) | |
download | gentoo-2-93bfecced470f9ce67a9c356325cfe2055954904.tar.gz gentoo-2-93bfecced470f9ce67a9c356325cfe2055954904.tar.bz2 gentoo-2-93bfecced470f9ce67a9c356325cfe2055954904.zip |
Better version of the logic for bug #286292.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index bcdde40210b6..7ffd8a218a25 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.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/linux-mod.eclass,v 1.97 2010/01/17 03:54:51 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.98 2010/01/17 04:00:07 robbat2 Exp $ # Author(s): John Mylchreest <johnm@gentoo.org>, # Stefan Schweizer <genstef@gentoo.org> @@ -603,8 +603,11 @@ linux-mod_pkg_setup_binary() { debug-print-function ${FUNCNAME} $* local new_CONFIG_CHECK for config in $CONFIG_CHECK ; do - optional=${config:0:1} - new_CONFIG_CHECK="${new_CONFIG_CHECK} ${optional:-~}${config}" + case ${config:0:1} in + ~) optional="" ;; + *) optional="~" ;; + esac + new_CONFIG_CHECK="${new_CONFIG_CHECK} ${optional}${config}" done export CONFIG_CHECK="${new_CONFIG_CHECK}" linux-info_pkg_setup; |