commit:     73c852a0c1f0e906fc0a9af64aa642b96bed73e7
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  2 20:24:55 2017 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Mon Jan  2 20:24:55 2017 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=73c852a0

Revert "clean up an if statement"

This reverts commit a22f45125393935e2e0a50cdfc303440cdc946d4.

The first if statement checks if busybox cache exists, and if so, does
it need to be invalidated (rm the cache file).

The second if statement checks if the cache does NOT exist, and builds
the new busybox cache.

 gen_compile.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gen_compile.sh b/gen_compile.sh
index 70a6732..a730d77 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -424,7 +424,10 @@ compile_busybox() {
                else
                        print_info 1 "busybox: >> Using cache"
                fi
-       else
+       fi
+
+       if [ ! -f "${BUSYBOX_BINCACHE}" ]
+       then
                cd "${TEMP}"
                rm -rf "${BUSYBOX_DIR}" > /dev/null
                /bin/tar -jxpf ${BUSYBOX_SRCTAR} ||

Reply via email to