From 2d9b4765c42b972a5375b7d49a1fab3033dccb9f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 5 Oct 2014 14:28:14 +0200 Subject: reproducible: fixup .buildinfo file handling --- bin/reproducible_build.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index d41ed539..0cf04844 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -166,9 +166,9 @@ for SRCPACKAGE in ${PACKAGES} ; do LOGFILE=$(echo ${LOGFILE%.dsc}.debbindiff.html) BUILDINFO=${SRCPACKAGE}_${EVERSION}_amd64.buildinfo /var/lib/jenkins/debbindiff.git/debbindiff.py --html ./${LOGFILE} b1/${SRCPACKAGE}_${EVERSION}_amd64.changes b2/${SRCPACKAGE}_${EVERSION}_amd64.changes || true - if [ ! -f ./${LOGFILE} ] || [ ! -f b1/${BUILD_INFO} ] ; then + if [ ! -f ./${LOGFILE} ] && [ ! -f b1/${BUILDINFO} ] ; then cleanup_userContent - cp b1/${BUILD_INFO} /var/lib/jenkins/userContent/buildinfo/ || true + cp b1/${BUILDINFO} /var/lib/jenkins/userContent/buildinfo/ figlet ${SRCPACKAGE} echo echo "${SRCPACKAGE} built successfully and reproducibly." @@ -177,11 +177,16 @@ for SRCPACKAGE in ${PACKAGES} ; do GOOD="${SRCPACKAGE} ${GOOD}" else cleanup_userContent - cp b1/${BUILD_INFO} /var/lib/jenkins/userContent/buildinfo/ + cp b1/${BUILDINFO} /var/lib/jenkins/userContent/buildinfo/ mv ./${LOGFILE} /var/lib/jenkins/userContent/dbd/ sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"unreproducible\", \"$DATE\")" set +x - echo "Warning: ${SRCPACKAGE} failed to build reproducibly." + echo -n "Warning: ${SRCPACKAGE} failed to build reproducibly." + if [ ! -f b1/${BUILDINFO} ] ; + echo " .buildinfo file is missing." + else + echo + fi let "COUNT_BAD=COUNT_BAD+1" BAD="${SRCPACKAGE} ${BAD}" fi -- cgit v1.2.3-70-g09d2