Fix genkernel crash when .config is present and testing for Localversion info on...
authorEric Edgar <rocket@gentoo.org>
Mon, 20 Jun 2005 15:42:25 +0000 (15:42 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 20 Jun 2005 15:42:25 +0000 (15:42 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@213 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_determineargs.sh

index 9225eef7adef20b166a0451f82804d78ff194873..b84d15ecab0b7e3a9d155215456c655daa3d576f 100644 (file)
@@ -36,7 +36,7 @@ get_KV() {
                PAT=`grep ^PATCHLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
                SUB=`grep ^SUBLEVEL\ \= ${KERNEL_DIR}/Makefile | awk '{ print $3 };'`
                EXV=`grep ^EXTRAVERSION\ \= ${KERNEL_DIR}/Makefile | sed -e "s/EXTRAVERSION =//" -e "s/ //g"`
-               if [ "${PAT}" -gt '4' ]
+               if [ "${PAT}" -gt '4' -a -e ${KERNEL_DIR}/.config ]
                then
                        cd ${KERNEL_DIR}
                        compile_generic prepare kernel > /dev/null 2>&1