aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-01-02 12:24:55 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-01-02 12:24:55 -0800
commit73c852a0c1f0e906fc0a9af64aa642b96bed73e7 (patch)
treeb2e13ca7cecc1546c3846f7840fb5a2d961e2781
parentmake nfs togglable fixes musl builds (requires nfs disabled) (diff)
downloadgenkernel-73c852a0c1f0e906fc0a9af64aa642b96bed73e7.tar.gz
genkernel-73c852a0c1f0e906fc0a9af64aa642b96bed73e7.tar.bz2
genkernel-73c852a0c1f0e906fc0a9af64aa642b96bed73e7.zip
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.
-rwxr-xr-xgen_compile.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/gen_compile.sh b/gen_compile.sh
index 70a67327..a730d771 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} ||