mirror of
https://github.com/dynup/kpatch
synced 2024-12-24 06:02:05 +00:00
kpatch-build: put log file in $CACHEDIR
Otherwise it gets removed along with TEMPDIR if '--debug' isn't set.
This commit is contained in:
parent
3932684cb4
commit
686cc4ff52
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user