Remove extra TEMP checking code that was commented out
authorEric Edgar <rocket@gentoo.org>
Mon, 25 Jul 2005 13:55:23 +0000 (13:55 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 25 Jul 2005 13:55:23 +0000 (13:55 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@280 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_determineargs.sh
gen_package.sh

index 102a6c9a30053656cdc5970e02721074140c4ca6..32f916ce91714a5408c905bbe1abf0dbb7a1a840 100644 (file)
@@ -3,10 +3,6 @@
 get_KV() {
        if [ "${CMD_NO_KERNEL_SOURCES}" = '1' -a -e "${CMD_KERNCACHE}" ]
        then
-               #[ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
-               #(umask 077 && mkdir ${TEMP}) || {
-               #       gen_die "Could not create temporary directory! Exiting."
-               #}
                /bin/tar -xj -C ${TEMP} -f ${CMD_KERNCACHE} kerncache.config 
                if [ -e ${TEMP}/kerncache.config ]
                then
@@ -25,10 +21,8 @@ get_KV() {
                        fi
 
                else
-                       #rm -r ${TEMP}
                        gen_die "Could not find kerncache.config in the kernel cache! Exiting."
                fi
-               #rm -r ${TEMP}
 
        else
                # Configure the kernel
index 80ec71c3cb00ec637adb3c56fddcc6f91d2c313a..d69f563bbdbe03e3004fafaa7df0029856d73e04 100644 (file)
@@ -83,10 +83,6 @@ gen_kerncache()
 
 gen_kerncache_extract_kernel()
 {
-       #[ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
-       #(umask 077 && mkdir ${TEMP}) || {
-       #    gen_die "Could not create temporary directory! Exiting."
-       #}
                /bin/tar -f ${KERNCACHE} -C ${TEMP} -xj 
        cp "${TEMP}/kernel-${ARCH}-${KV}" "/boot/kernel-${KNAME}-${ARCH}-${KV}" || gen_die 'Could not copy the kernel binary to /boot!'
        if [ "${KERNEL_BINARY_2}" != '' ]
@@ -117,10 +113,6 @@ gen_kerncache_is_valid()
                
                BUILD_KERNEL=0
                # Can make this more secure ....
-               #[ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
-               #(umask 077 && mkdir ${TEMP}) || {
-               #    gen_die "Could not create temporary directory! Exiting."
-               #}
                
                /bin/tar -xj -f ${KERNCACHE} -C ${TEMP}
                if [ -e ${TEMP}/config-${ARCH}-${KV} -a -e ${TEMP}/kernel-${ARCH}-${KV} ] 
@@ -128,16 +120,9 @@ gen_kerncache_is_valid()
                        print_info 1 'Valid kernel cache found; no sources will be used'
                        KERNCACHE_IS_VALID=1
                fi
-               #/bin/rm -r ${TEMP}
         else
                if [ -e "${KERNCACHE}" ] 
                then
-                       #[ -d ${TEMP} ] && gen_die "temporary directory already exists! Exiting."
-                       #(umask 077 && mkdir ${TEMP}) || {
-                       #    gen_die "Could not create temporary directory! Exiting."
-                       #    
-                       #}
-               
                        /bin/tar -xj -f ${KERNCACHE} -C ${TEMP}
                        if [ -e ${TEMP}/config-${ARCH}-${KV} -a -e /${KERNEL_DIR}/.config ]
                        then
@@ -153,7 +138,6 @@ gen_kerncache_is_valid()
                                        KERNCACHE_IS_VALID=1
                                fi
                        fi
-                       #/bin/rm -r ${TEMP}
                fi
        fi
        export KERNCACHE_IS_VALID