Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 09 Jul 2018 16:54:59
Message-Id: 1531155286.72f2edae1b1883797bd4c5c3316f3b7020c25796.mgorny@gentoo
1 commit: 72f2edae1b1883797bd4c5c3316f3b7020c25796
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 8 16:12:09 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 9 16:54:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72f2edae
7
8 linux-info.eclass: require_configured_kernel, improve error handling
9
10 Add error handling for failing get_version call
11 in require_configured_kernel. Give just a simple 'die' message since
12 the get_version function should verbosely explain the problem.
13
14 eclass/linux-info.eclass | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
18 index caeb9ec0705..5795219a880 100644
19 --- a/eclass/linux-info.eclass
20 +++ b/eclass/linux-info.eclass
21 @@ -295,7 +295,7 @@ require_configured_kernel() {
22 qeerror "it points to the necessary object directory so that it might find .config."
23 die "Kernel not configured; no .config found in ${KV_OUT_DIR}"
24 fi
25 - get_version
26 + get_version || die "Unable to determine configured kernel version"
27 }
28
29 # @FUNCTION: linux_chkconfig_present