From e0af4fac06240e53e56144a9c1a47072e89a401f Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Mon, 27 Apr 2015 16:55:46 +0200 Subject: reproducible: build: write both build logs to rbuild --- bin/reproducible_build.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin/reproducible_build.sh') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 701f5319..43d6a271 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -364,7 +364,6 @@ check_suitability() { build_rebuild() { FTBFS=1 - local TMPLOG=$(mktemp --tmpdir=$TMPDIR) local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$TMPDIR) local NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l) mkdir b1 b2 @@ -380,7 +379,7 @@ build_rebuild() { --buildresult b1 \ --distribution ${SUITE} \ ${SRCPACKAGE}_*.dsc \ - ) 2>&1 | tee ${TMPLOG} + ) 2>&1 | tee -a $RBUILDLOG set +x if [ -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then # the first build did not FTBFS, try rebuild it. @@ -414,14 +413,12 @@ build_rebuild() { else echo "The second build failed, even though the first build was successful." | tee -a ${RBUILDLOG} fi - else - cat ${TMPLOG} >> ${RBUILDLOG} fi cleanup_userContent chmod 644 $RBUILDLOG mv $RBUILDLOG /var/lib/jenkins/userContent/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log RBUILDLOG=/var/lib/jenkins/userContent/rbuild/${SUITE}/${ARCH}/${SRCPACKAGE}_${EVERSION}.rbuild.log - rm ${TMPLOG} $TMPCFG + rm $TMPCFG if [ $FTBFS -eq 1 ] ; then handle_ftbfs ; fi } -- cgit v1.2.3-54-g00ecf