summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpcyrd <git@rxv.cc>2017-11-22 03:42:17 +0100
committerHolger Levsen <holger@layer-acht.org>2017-11-22 10:47:20 +0000
commit60364b0bc90beafc2b6dbbe224afa6805277e135 (patch)
tree74012f9fdda666c51d0142222082577110fa754f
parenta170984f62118082a8cdfc9ae307bae59d5cf6eb (diff)
downloadjenkins.debian.net-60364b0bc90beafc2b6dbbe224afa6805277e135.tar.xz
reproducible-archlinux: fix html report if reproducible
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_build_archlinux_pkg.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index ff790274..090e07b8 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -348,9 +348,11 @@ if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; the
if diff -q $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ; then
echo "$(date -u) - YAY - $SRCPACKAGE/$ARTIFACT build reproducible in our test framework!"
mkdir -p $BASE/archlinux/$REPOSITORY/$SRCPACKAGE
- echo "<html><body><p>$SRCPACKAGE/$ARTIFACT build reproducible in our test framework:<br />" > $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html
- (cd $TMPDIR/b1/ ; sha256sum $SRCPACKAGE/$ARTIFACT >> $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html )
- echo "</p></body>" > $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html
+ (
+ echo "<html><body><p>$SRCPACKAGE/$ARTIFACT build reproducible in our test framework:<br />"
+ (cd $TMPDIR/b1/ ; sha256sum $SRCPACKAGE/$ARTIFACT)
+ echo "</p></body>"
+ ) > "$BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html"
elif [ -f $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT ] && [ -f $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ] ; then
# run diffoscope on the results
TIMEOUT="30m"