summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-11-22 12:55:15 +0000
committerHolger Levsen <holger@layer-acht.org>2017-11-22 12:55:15 +0000
commit55d32876ec76887dbb50c80f7fe3f8749e1dca67 (patch)
treebe0a26b81e28a2876b5f70c97c40292a169b9743
parent3ab7b9f2c46dc4184d415c3e47046eee152dc07f (diff)
downloadjenkins.debian.net-55d32876ec76887dbb50c80f7fe3f8749e1dca67.tar.xz
reproducible Arch Linux: extract .BUILDINFO file after package build
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_build_archlinux_pkg.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index 8ba705cf..05d743fb 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -348,9 +348,14 @@ 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
+ tar xJvf $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b1.BUILDINFO
+ tar xJvf $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT .BUILDINFO && mv .BUILDINFO $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT-b2.BUILDINFO
(
echo "<html><body><p>$SRCPACKAGE/$ARTIFACT build reproducible in our test framework:<br />"
(cd $TMPDIR/b1/ ; sha256sum $SRCPACKAGE/$ARTIFACT)
+ echo "<br />"
+ echo "<a href=\"$ARTIFACT-b1.BUILDINFO\">$ARTIFACT-b1.BUILDINFO</a><br />"
+ echo "<a href=\"$ARTIFACT-b2.BUILDINFO\">$ARTIFACT-b2.BUILDINFO</a><br />"
echo "</p></body>"
) > "$BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html"
elif [ -f $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT ] && [ -f $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ] ; then