commit: 72f2edae1b1883797bd4c5c3316f3b7020c25796
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 8 16:12:09 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 9 16:54:46 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72f2edae
linux-info.eclass: require_configured_kernel, improve error handling
Add error handling for failing get_version call
in require_configured_kernel. Give just a simple 'die' message since
the get_version function should verbosely explain the problem.
eclass/linux-info.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index caeb9ec0705..5795219a880 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -295,7 +295,7 @@ require_configured_kernel() {
qeerror "it points to the necessary object directory so that it
might find .config."
die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
fi
- get_version
+ get_version || die "Unable to determine configured kernel version"
}
# @FUNCTION: linux_chkconfig_present