diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2020-06-20 03:10:37 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2020-06-20 03:10:37 +0200 |
commit | a8c182eab5bbc69334480ef1cc5175673eac9541 (patch) | |
tree | 609d5b70b0bed6644a81f4d148ff8f473ffae2f1 /worker_modules | |
parent | gkbuilds/gnupg: Set CC_FOR_BUILD (diff) | |
download | genkernel-a8c182eab5bbc69334480ef1cc5175673eac9541.tar.gz genkernel-a8c182eab5bbc69334480ef1cc5175673eac9541.tar.bz2 genkernel-a8c182eab5bbc69334480ef1cc5175673eac9541.zip |
gkbuild.sh: _initialize(): Don't use temporary directory for packages
This is not necessary since top folder is already a temporary directory.
This will also allow us compare different genkernel log files more
easily.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'worker_modules')
-rw-r--r-- | worker_modules/gkbuild.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/worker_modules/gkbuild.sh b/worker_modules/gkbuild.sh index 24c6e53..f26c27a 100644 --- a/worker_modules/gkbuild.sh +++ b/worker_modules/gkbuild.sh @@ -291,8 +291,8 @@ _initialize() { die "Unable to build ${P}: '${GK_SHARE}/gkbuilds/${PN}.gkbuild' does NOT exist!" fi - declare -gr WORKDIR=$(mktemp -d -p "${TEMP}" ${PN}_XXXXXXXX 2>/dev/null) - [ -z "${WORKDIR}" ] && die "mktemp failed!" + declare -gr WORKDIR="${TEMP}/${PN}" + mkdir "${WORKDIR}" || die "Failed to create '${WORKDIR}'!" declare -gr BROOT="${WORKDIR}/buildroot" mkdir "${BROOT}" || die "Failed to create '${BROOT}'!" |