kpatch-build: put log file in $CACHEDIR

Otherwise it gets removed along with TEMPDIR if '--debug' isn't set.
This commit is contained in:
Josh Poimboeuf 2015-11-03 13:47:31 -06:00
parent 3932684cb4
commit 686cc4ff52

View File

@ -44,7 +44,7 @@ OBJDIR="$CACHEDIR/obj"
TMPSRCDIR="$CACHEDIR/tempsrc"
VERSIONFILE="$CACHEDIR/version"
TEMPDIR="$CACHEDIR/tmp"
LOGFILE="$TEMPDIR/build.log"
LOGFILE="$CACHEDIR/build.log"
APPLIEDPATCHFILE="kpatch.patch"
DEBUG=0
SKIPGCCCHECK=0
@ -275,6 +275,7 @@ done
# ensure cachedir and tempdir are setup properly and cleaned
mkdir -p "$TEMPDIR" || die "Couldn't create $TEMPDIR"
rm -rf "$TEMPDIR"/*
rm -f "$LOGFILE"
trap cleanup EXIT INT TERM