aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2014-08-28 15:02:04 +0200
committerUlrich Müller <ulm@gentoo.org>2014-08-28 15:02:04 +0200
commit2595c33ecfc5d1604a421f420ca6786c98968ba8 (patch)
treefed5456bae00bf2eaf53121e01c5d9d1d78e1b7b /modules/kernel.eselect
parentRemove redundant $@ in "for" loops throughout. (diff)
downloadeselect-2595c33ecfc5d1604a421f420ca6786c98968ba8.tar.gz
eselect-2595c33ecfc5d1604a421f420ca6786c98968ba8.tar.bz2
eselect-2595c33ecfc5d1604a421f420ca6786c98968ba8.zip
Changed heuristic for recognising kernel source trees.
* modules/kernel.eselect (find_targets): Changed heuristic for recognising kernel source trees: Check for both Makefile and Kconfig being present, but don't require digits in the directory name any more. Bug 516754.
Diffstat (limited to 'modules/kernel.eselect')
-rw-r--r--modules/kernel.eselect4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/kernel.eselect b/modules/kernel.eselect
index d21b748..c327f3c 100644
--- a/modules/kernel.eselect
+++ b/modules/kernel.eselect
@@ -28,8 +28,8 @@ sort_kernel_versions() {
# find a list of kernel symlink targets
find_targets() {
local f
- for f in "${EROOT}"/usr/src/linux-[[:digit:]]*; do
- [[ -f ${f}/Makefile ]] && basename "${f}"
+ for f in "${EROOT}"/usr/src/linux-*; do
+ [[ -f ${f}/Makefile && -f ${f}/Kconfig ]] && basename "${f}"
done | sort_kernel_versions
}