[Qa-jenkins-scm] [jenkins.debian.net] 04/04: reproducible: build: refactor: use $TMPDIR instead of $PWD to be clear about the scope
Holger Levsen
holger at moszumanska.debian.org
Sat Apr 18 15:57:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit cec503e5c0155ed61527f1081829c5c6314008a4
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Mon Apr 6 17:34:00 2015 +0200
reproducible: build: refactor: use $TMPDIR instead of $PWD to be clear about the scope
---
bin/reproducible_build.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 9f2bf03..1699986 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list