From 01a5e0722d73b7c318543964761ae09cbe014d2a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 8 Oct 2014 13:10:36 +0200 Subject: reproducinle: brute force fixup of debbindiff CSS --- bin/reproducible_build.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 2d34581f..9606c606 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -193,7 +193,16 @@ for SRCPACKAGE in ${PACKAGES} ; do GOOD="${SRCPACKAGE} ${GOOD}" else cp b1/${BUILDINFO} /var/lib/jenkins/userContent/buildinfo/ || true - mv ./${LOGFILE} /var/lib/jenkins/userContent/dbd/ || true + if [ -f ./${LOGFILE} ] ; then + # hack around html file to include custom .css + # should really be fixed in debbindiff and just moved.... + # FIXME: file a bug against debbindiff for external CSS support + if grep -q "Generated by debbindiff 3" ./${LOGFILE} ; then + sed '/\/,/<\/style>/{//!d}' ./${LOGFILE} |grep -v "style>" | sed -s 's## \n \n#' > /var/lib/jenkins/userContent/dbd/${LOGFILE} + else + mv ./${LOGFILE} /var/lib/jenkins/userContent/dbd/ + fi + fi sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"unreproducible\", \"$DATE\")" set +x echo -n "Warning: ${SRCPACKAGE} failed to build reproducibly." -- cgit v1.2.3-70-g09d2