summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-26 13:08:59 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-26 13:08:59 +0200
commit23efcf8722b5305f49c4467796d3e32bbb32aaa1 (patch)
treef684cb33eb3a1f6c2359f6967016771a9680dd87 /bin
parent9ea06a057809e826ec14f076cba120edac910786 (diff)
downloadjenkins.debian.net-23efcf8722b5305f49c4467796d3e32bbb32aaa1.tar.xz
reproducible: always set ARCH depending on the MODE
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 366d7a0a..6db5b32c 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -661,7 +661,6 @@ DATE=$(date -u +'%Y-%m-%d %H:%M')
START=$(date +'%s')
RBUILDLOG=$(mktemp --tmpdir=$TMPDIR)
BUILDER="${JOB_NAME#reproducible_builder_}/${BUILD_ID}"
-ARCH="$(dpkg --print-architecture)"
#
# determine mode
@@ -673,6 +672,7 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
MODE="$1"
SRCPACKAGE="$2"
SUITE="$3"
+ ARCH="$(dpkg --print-architecture)"
SAVE_ARTIFACTS="0"
TMPDIR="$4"
[ -d $TMPDIR ] || mkdir -p $TMPDIR