diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-08 13:10:36 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-08 13:10:36 +0200 |
commit | 01a5e0722d73b7c318543964761ae09cbe014d2a (patch) | |
tree | da66afc9def212ebe47eb2dd3cae06ca3e602257 /bin/reproducible_build.sh | |
parent | 430708e79557eb9cb83b051019a62e6c32a6b89c (diff) | |
download | jenkins.debian.net-01a5e0722d73b7c318543964761ae09cbe014d2a.tar.xz |
reproducinle: brute force fixup of debbindiff CSS
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-x | bin/reproducible_build.sh | 11 |
1 files changed, 10 insertions, 1 deletions
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\>/,/<\/style>/{//!d}' ./${LOGFILE} |grep -v "style>" | sed -s 's#</head># <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n <link href="../static/style_dbd.css" type="text/css" rel="stylesheet" />\n</head>#' > /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." |