summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 1b9227b0..6cbc486b 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -233,6 +233,9 @@ call_debbindiff() {
# there is no extra debbindiff-schroot for experimental because we specical case ghc enough already ;)
DBDSUITE="unstable"
fi
+ # TEMP is recognized by python's tempfile module to create temp stuff inside
+ export TEMP=$(mktemp --tmpdir=$TMPDIR -d dbd-tmp-XXXXXXX)
+ local OLD_DEBBINDIFF_TMP_COUNT=$(find "$TEMP" -maxdepth 1 -name tmp*debbindiff | wc -l)
DBDVERSION="$(schroot --directory /tmp -c source:jenkins-reproducible-${DBDSUITE}-debbindiff debbindiff -- --version 2>&1)"
echo "$(date) - $DBDVERSION will be used to compare the two builds:" | tee -a ${RBUILDLOG}
set +e
@@ -251,6 +254,11 @@ call_debbindiff() {
cat $TMPLOG | tee -a $RBUILDLOG # print dbd output
rm $TMPLOG
echo | tee -a ${RBUILDLOG}
+ NEW_DEBBINDIFF_TMP_COUNT=$(find "$TEMP" -maxdepth 1 -name tmp*debbindiff | wc -l)
+ if [ "$OLD_DEBBINDIFF_TMP_COUNT" != "$NEW_DEBBINDIFF_TMP_COUNT" ]; then
+ irc_msg "debbindiff calls on $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE or ${BUILD_URL}console left cruft, please help investigate and fix 788568"
+ fi
+ unset TEMP
case $RESULT in
0)
handle_reproducible