move initialization up
authorLudwig Nussel <ludwig.nussel@suse.de>
Thu, 29 Apr 2010 09:02:17 +0000 (11:02 +0200)
committerLudwig Nussel <ludwig.nussel@suse.de>
Thu, 29 Apr 2010 14:08:22 +0000 (16:08 +0200)
build

diff --git a/build b/build
index 91e9e38..62664ba 100755 (executable)
--- a/build
+++ b/build
@@ -81,6 +81,7 @@ RSYNCSRC=
 RSYNCDEST=
 RSYNCDONE=
 : ${EMULATOR_ARCHS:="armv4l armv5el armv6el armv7el sh4 ppc ppc64 mips mipsel"}
+: ${CACHE_DIR:=/var/cache/build}
 
 export EMULATOR_ARCHS
 
@@ -931,8 +932,6 @@ if test "$VM_TYPE" = "lxc"; then
     VM_SWAP=''
 fi
 
-test -n "$CACHE_DIR" ||  CACHE_DIR=/var/cache/build
-
 if test -n "$KILL" ; then
     test -z "$SRCDIR" || usage
     if test -n "$VM_IMAGE" -a -n "$VM_SWAP" -a -n "$VM_TYPE"; then