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 177cb7fafcde..5ffaf3f3b898 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.16.2


Reply via email to