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