diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-12 21:31:12 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-06-14 21:55:26 +0200 |
commit | 7fc7fb0c59266664b8c700e21859a7fbcc3d5052 (patch) | |
tree | a18c9e48228f06f39c2679208f88008cd5c8a502 /bin/reproducible_build.sh | |
parent | ed7f36ad6ac69972414ff11eea911a22a25d26f1 (diff) | |
download | jenkins.debian.net-7fc7fb0c59266664b8c700e21859a7fbcc3d5052.tar.xz |
reproducible: define $TEMPDIR as /tmp/reproducible and teach all the to create temporary files under TEMPDIR (except for builders, they have their own TMPDIR), to avoid polluting /tmp
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index c17f6975..1b9227b0 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -375,8 +375,8 @@ first_build(){ } check_buildinfo() { - local TMPFILE1=$(mktemp) - local TMPFILE2=$(mktemp) + local TMPFILE1=$(mktemp --tmpdir=$TMPDIR) + local TMPFILE2=$(mktemp --tmpdir=$TMPDIR) grep-dctrl -s Build-Environment -n ${SRCPACKAGE} ./b1/$BUILDINFO > $TMPFILE1 grep-dctrl -s Build-Environment -n ${SRCPACKAGE} ./b2/$BUILDINFO > $TMPFILE2 set +e |