diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-03-08 17:12:09 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-07-09 18:54:46 +0200 |
commit | 72f2edae1b1883797bd4c5c3316f3b7020c25796 (patch) | |
tree | 0b9fbe857ff8035e1fafd292cb5099513ef4911a /eclass/linux-info.eclass | |
parent | linux-info.eclass: Move get_version to require_configured_kernel (diff) | |
download | gentoo-72f2edae1b1883797bd4c5c3316f3b7020c25796.tar.gz gentoo-72f2edae1b1883797bd4c5c3316f3b7020c25796.tar.bz2 gentoo-72f2edae1b1883797bd4c5c3316f3b7020c25796.zip |
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.
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r-- | eclass/linux-info.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 |