summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build_archlinux_pkg.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-11-21 19:28:55 +0000
committerHolger Levsen <holger@layer-acht.org>2017-11-21 19:28:55 +0000
commit7f60a4cebdb1d1c2bcdfee3c28086f79129dc4bd (patch)
treee646744e6e53aac89a77acb41b8117e548ad4d3c /bin/reproducible_build_archlinux_pkg.sh
parent250fb7485759356e4ff9528e96b2dfb76211fad7 (diff)
downloadjenkins.debian.net-7f60a4cebdb1d1c2bcdfee3c28086f79129dc4bd.tar.xz
reproducible Arch Linux: try to detect reproducible packages
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_build_archlinux_pkg.sh')
-rwxr-xr-xbin/reproducible_build_archlinux_pkg.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/reproducible_build_archlinux_pkg.sh b/bin/reproducible_build_archlinux_pkg.sh
index 4ff74d20..1a65cd15 100755
--- a/bin/reproducible_build_archlinux_pkg.sh
+++ b/bin/reproducible_build_archlinux_pkg.sh
@@ -334,6 +334,10 @@ if [ ! -z "$(ls $TMPDIR/b1/$SRCPACKAGE/*.pkg.tar.xz 2>/dev/null|| true)" ] ; the
for ARTIFACT in *.pkg.tar.xz ; do
[ -f $ARTIFACT ] || continue
call_diffoscope $SRCPACKAGE $ARTIFACT
+ if diff -q $TMPDIR/b1/$SRCPACKAGE/$ARTIFACT $TMPDIR/b2/$SRCPACKAGE/$ARTIFACT ; then
+ echo "$SRCPACKAGE/$ARTIFACT build reproducible in our test framework:" > $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html
+ (cd $TMPDIR/b1/ ; sha256sum $SRCPACKAGE/$ARTIFACT >> $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/$ARTIFACT.html )
+ fi
# publish page
if [ -f $TMPDIR/$SRCPACKAGE/$ARTIFACT.html ] ; then
cp $TMPDIR/$SRCPACKAGE/$ARTIFACT.html $BASE/archlinux/$REPOSITORY/$SRCPACKAGE/