From 2595c33ecfc5d1604a421f420ca6786c98968ba8 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 28 Aug 2014 15:02:04 +0200 Subject: 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. --- modules/kernel.eselect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/kernel.eselect') 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 } -- cgit v1.2.3-65-gdbad