From 72f2edae1b1883797bd4c5c3316f3b7020c25796 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 8 Mar 2018 17:12:09 +0100 Subject: [PATCH] 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 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 -- 2.26.2