[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: more carefully use TMPDIR

Holger Levsen holger at moszumanska.debian.org
Sun Aug 30 21:26:40 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 3922acc2a306b220bb248bf128433921ac680f49
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Aug 30 23:17:30 2015 +0200

    reproducible: more carefully use TMPDIR
---
 bin/reproducible_build.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index da9373d..9d808ad 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -573,8 +573,10 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
 	MODE="$1"
 	SRCPACKAGE="$2"
 	SUITE="$3"
-	SAVE_ARTIFACTS=0
-	TMPDIR="$4" ; mkdir $TMPDIR ; cd $TMPDIR
+	SAVE_ARTIFACTS="0"
+	TMPDIR="$4"
+	[ -d $TMPDIR ] || mkdir -p $TMPDIR
+	cd $TMPDIR
 	get_source_package
 	mkdir b$MODE
 	if [ "$MODE" = "1" ] ; then

-- 
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