Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Sat, 01 Aug 2020 21:41:59
Message-Id: 1596314900.b77e7ab91fe14f238eb6a4a7a0f0b963909fb1a1.whissi@gentoo
1 commit: b77e7ab91fe14f238eb6a4a7a0f0b963909fb1a1
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 1 18:55:27 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 1 20:48:20 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=b77e7ab9
7
8 genkernel: Update kerncache only when kernel was built
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 genkernel | 5 +----
13 1 file changed, 1 insertion(+), 4 deletions(-)
14
15 diff --git a/genkernel b/genkernel
16 index b96e388..b601eb0 100755
17 --- a/genkernel
18 +++ b/genkernel
19 @@ -378,11 +378,8 @@ fi
20
21 if [ -n "${KERNCACHE}" ]
22 then
23 - if ! isTrue "${KERNCACHE_IS_VALID}"
24 + if isTrue "${BUILD_KERNEL}" && ! isTrue "${KERNCACHE_IS_VALID}"
25 then
26 - # Only update KERNCACHE when KERNCACHE wasn't used because
27 - # when it was used nothing has been changed so no update is
28 - # necessary.
29 print_info 1 '' 1 0
30 gen_kerncache
31 else