From: Michał Górny Date: Thu, 8 Mar 2018 16:12:09 +0000 (+0100) Subject: linux-info.eclass: require_configured_kernel, improve error handling X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=72f2edae1b1883797bd4c5c3316f3b7020c25796;p=gentoo.git 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. --- diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index caeb9ec0705d..5795219a880b 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