summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-04-06 18:10:01 +0200
committerHolger Levsen <holger@layer-acht.org>2015-04-18 17:59:47 +0200
commite453a62175469165928ff177cbfe5f7ce71124c6 (patch)
treef85b74d3d6f25237cbb54b83cb52891e25a00661 /bin
parent25549ac6a98046538713f78a494e0d9063e3bdf8 (diff)
downloadjenkins.debian.net-e453a62175469165928ff177cbfe5f7ce71124c6.tar.xz
reproducible: build: refactor: first define of RBUILDLOG globally at the very start: we use it from the start, cant' be defined in a function
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 52aa83bc..f6dfa890 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -300,7 +300,6 @@ check_suitability() {
build_rebuild() {
FTBFS=1
local TMPLOG=$(mktemp --tmpdir=$TMPDIR)
- local RBUILDLOG=$(mktemp --tmpdir=$TMPDIR) # FIXME check wheter my changes here are fine
local TMPCFG=$(mktemp -t pbuilderrc_XXXX --tmpdir=$TMPDIR)
local NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l)
mkdir b1 b2
@@ -370,6 +369,7 @@ cd $TMPDIR
DATE=$(date +'%Y-%m-%d %H:%M')
START=$(date +'%s')
+RBUILDLOG=$(mktemp --tmpdir=$TMPDIR) # FIXME check wheter my changes here are fine
choose_package # defines SUITE, PKGID, SRCPACKAGE, SCHEDULED_DATE, SAVE_ARTIFACTS
@@ -385,7 +385,7 @@ EVERSION=$(echo $VERSION | cut -d ":" -f2) # EPOCH_FREE_VERSION was too long
cat ${SRCPACKAGE}_${EVERSION}.dsc | tee -a ${RBUILDLOG}
check_suitability
-build_rebuild # defines FTBFS, RBUILDLOG
+build_rebuild # defines FTBFS redefines RBUILDLOG
if [ $FTBFS -eq 0 ] ; then
call_debbindiff # defines DBDVERSION
fi