summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-06 17:34:00 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-18 17:57:11 +0200
commitcec503e5c0155ed61527f1081829c5c6314008a4 (patch)
treea40e905cc7bfaccc35ecd71de96430166f46077f /bin
parent542c249a49943fd15f3566105e05116b15e18531 (diff)
downloadjenkins.debian.net-cec503e5c0155ed61527f1081829c5c6314008a4.tar.xz
reproducible: build: refactor: use $TMPDIR instead of $PWD to be clear about the scope
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 9f2bf03c..16999869 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -192,7 +192,7 @@ dbd_timeout() {
call_debbindiff() {
init_debbindiff # check and set up locks for chroot
- local TMPLOG=(mktemp --tmpdir=$PWD)
+ local TMPLOG=(mktemp --tmpdir=$TMPDIR)
echo | tee -a ${RBUILDLOG}
local TIMEOUT="30m" # don't forget to also change the "seq 0 200" loop 17 lines above
DBDVERSION="$(schroot --directory /tmp -c source:jenkins-reproducible-unstable-debbindiff debbindiff -- --version 2>&1)"
@@ -295,9 +295,9 @@ check_suitability() {
build_rebuild() {
FTBFS=1
- local TMPLOG=$(mktemp --tmpdir=$PWD)
- local RBUILDLOG=$(mktemp --tmpdir=$PWD) # FIXME check wheter my changes here are fine
- local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$PWD)
+ local TMPLOG=$(mktemp --tmpdir=$TMPDIR)
+ local RBUILDLOG=$(mktemp --tmpdir=$TMPDIR) # FIXME check wheter my changes here are fine
+ local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$TMPDIR)
local NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
mkdir b1 b2
set -x