Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Mon, 02 Jan 2017 20:40:08
Message-Id: 1483388695.73c852a0c1f0e906fc0a9af64aa642b96bed73e7.robbat2@gentoo
1 commit: 73c852a0c1f0e906fc0a9af64aa642b96bed73e7
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 20:24:55 2017 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 20:24:55 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=73c852a0
7
8 Revert "clean up an if statement"
9
10 This reverts commit a22f45125393935e2e0a50cdfc303440cdc946d4.
11
12 The first if statement checks if busybox cache exists, and if so, does
13 it need to be invalidated (rm the cache file).
14
15 The second if statement checks if the cache does NOT exist, and builds
16 the new busybox cache.
17
18 gen_compile.sh | 5 ++++-
19 1 file changed, 4 insertions(+), 1 deletion(-)
20
21 diff --git a/gen_compile.sh b/gen_compile.sh
22 index 70a6732..a730d77 100755
23 --- a/gen_compile.sh
24 +++ b/gen_compile.sh
25 @@ -424,7 +424,10 @@ compile_busybox() {
26 else
27 print_info 1 "busybox: >> Using cache"
28 fi
29 - else
30 + fi
31 +
32 + if [ ! -f "${BUSYBOX_BINCACHE}" ]
33 + then
34 cd "${TEMP}"
35 rm -rf "${BUSYBOX_DIR}" > /dev/null
36 /bin/tar -jxpf ${BUSYBOX_SRCTAR} ||