summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-30 18:42:01 +0200
committerMattia Rizzolo <mattia@mapreri.org>2015-04-30 21:53:54 +0200
commiteffc564e0c219cc167295c0c0ea623f3fd5ed92b (patch)
treee622d920f935d86050e8c09eb18f2d3b4ab2bf81 /bin/reproducible_build.sh
parent830dfb59e963bd9233b7eea4ff7acf87239c0dd1 (diff)
downloadjenkins.debian.net-effc564e0c219cc167295c0c0ea623f3fd5ed92b.tar.xz
reproducible: build: set +x IFF $DEBUG is false
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 0295c6f2..4355f634 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -261,7 +261,7 @@ call_debbindiff() {
./b2/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes 2>&1 \
) 2>&1 >> $TMPLOG
RESULT=$?
- set +x
+ if ! "$DEBUG" ; then set +x ; fi
set -e
cat $TMPLOG | tee -a $RBUILDLOG # print out dbd output
rm -f $DBDCHROOT_READLOCK $TMPLOG
@@ -379,7 +379,7 @@ build_rebuild() {
--distribution ${SUITE} \
${SRCPACKAGE}_*.dsc \
) 2>&1 | tee -a $RBUILDLOG
- set +x
+ if ! "$DEBUG" ; then set +x ; fi
if [ -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then
# the first build did not FTBFS, try rebuild it.
check_for_race_conditions
@@ -404,7 +404,7 @@ build_rebuild() {
--distribution ${SUITE} \
${SRCPACKAGE}_${EVERSION}.dsc
) 2>&1 | tee -a ${RBUILDLOG}
- set +x
+ if ! "$DEBUG" ; then set +x ; fi
if [ -f b2/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then
# both builds were fine, i.e., they did not FTBFS.
FTBFS=0