commit: 16277f08dca35649e52ec4ee9baf870d34a8ca31 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Sat Sep 4 21:32:45 2021 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Sat Sep 4 21:32:45 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16277f08
linux-info.eclass: Properly return when makefile found Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> eclass/linux-info.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 1379b6008b8..48f2ff7fbcb 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -988,8 +988,8 @@ linux-info_pkg_setup() { # Order of checking and valid Makefiles names: GNUMakefile, makefile, Makefile kernel_get_makefile() { - [[ -s ${KV_DIR}/GNUMakefile ]] && KERNEL_MAKEFILE="${KV_DIR}/GNUMakefile" - [[ -s ${KV_DIR}/makefile ]] && KERNEL_MAKEFILE="${KV_DIR}/makefile" - [[ -s ${KV_DIR}/Makefile ]] && KERNEL_MAKEFILE="${KV_DIR}/Makefile" + [[ -s ${KV_DIR}/GNUMakefile ]] && KERNEL_MAKEFILE="${KV_DIR}/GNUMakefile" && return + [[ -s ${KV_DIR}/makefile ]] && KERNEL_MAKEFILE="${KV_DIR}/makefile" && return + [[ -s ${KV_DIR}/Makefile ]] && KERNEL_MAKEFILE="${KV_DIR}/Makefile" && return }