From 9d464ca97f39b0451d1c6088606f4af463ea3c7c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 16 Feb 2015 16:36:28 +0100 Subject: reproducible: catch debbindiff exiting with exit code 2 if it has trouble comparing two builds --- bin/reproducible_build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 4bf5fa19..49c655db 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014 Holger Levsen +# Copyright 2014-2015 Holger Levsen # released under the GPLv=2 DEBUG=false @@ -71,6 +71,8 @@ call_debbindiff() { fi elif [ $RESULT -eq 1 ] ; then DEBBINDIFFOUT="debbindiff found issues, please investigate $REPRODUCIBLE_URL/dbd/${LOGFILE}" + elif [ $RESULT -eq 2 ] ; then + DEBBINDIFFOUT="debbindiff had trouble comparing the two builds. Please investigate $REPRODUCIBLE_URL/rbuild/${SRCPACKAGE}_${EVERSION}.rbuild.log" fi if [ $RESULT -eq 0 ] && [ ! -f ./${LOGFILE} ] && [ -f b1/${BUILDINFO} ] ; then cp b1/${BUILDINFO} /var/lib/jenkins/userContent/buildinfo/ > /dev/null 2>&1 -- cgit v1.2.3-54-g00ecf