summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build_archlinux_pkg.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-20 22:58:20 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-20 22:58:20 +0100
commit1445f8f82b2e644e08a2d64f3092dd622ac3acf3 (patch)
tree36832d1c7692e8757a67ca220c56f7f7adcc4a49 /bin/reproducible_build_archlinux_pkg.sh
parentfbe6aecc550fa0a821ac3267deaeb89ddd994db9 (diff)
downloadjenkins.debian.net-1445f8f82b2e644e08a2d64f3092dd622ac3acf3.tar.xz
reproducible archlinux+rpms:_don't create TMPDIR when it's not clear we'll run in master mode
Diffstat (limited to 'bin/reproducible_build_archlinux_pkg.sh')
-rwxr-xr-xbin/reproducible_build_archlinux_pkg.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index d7540df2..3706567a 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -253,21 +253,19 @@ remote_build() {
#
# below is what controls the world
#
-
-TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d -t rbuild-archlinux-XXXXXXXX) # where everything actually happens
-trap cleanup_all INT TERM EXIT
-cd $TMPDIR
-
TIMEOUT=8 # maximum time in hours for a single build
DATE=$(date -u +'%Y-%m-%d %H:%M')
START=$(date +'%s')
DUMMY=$(mktemp -t archlinux-dummy-XXXXXXXX)
+trap cleanup_all INT TERM EXIT
#
# determine mode
#
if [ "$1" = "" ] ; then
MODE="master"
+ TMPDIR=$(mktemp --tmpdir=/srv/reproducible-results -d -t rbuild-archlinux-XXXXXXXX) # where everything actually happens
+ cd $TMPDIR
elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
MODE="$1"
REPOSITORY="$2"