mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 13:42:09 +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"
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user