[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible_lede: shortcut packages via sha256sum
Holger Levsen
holger at layer-acht.org
Mon Jun 19 00:08:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 889ae7b36b45c6bad0218767675a64b86f09cd4b
Author: Alexander Couzens <lynxis at fe80.eu>
Date: Mon Jun 19 01:56:15 2017 +0200
reproducible_lede: shortcut packages via sha256sum
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
bin/reproducible_lede.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index 701bf25..3c65872 100755
--- a/bin/reproducible_lede.sh
+++ b/bin/reproducible_lede.sh
@@ -130,6 +130,8 @@ for target in * ; do
if [ "$(sha256sum "$TMPDIR/b1/targets/$target/$subtarget/$image" "$TMPDIR/b2/targets/$target/$subtarget/$image" \
| cut -f 1 -d ' ' | uniq -c | wc -l)" != "1" ] ; then
call_diffoscope targets/$target/$subtarget $image
+ else
+ echo "$(date -u) - targets/$target/$subtarget/$image is reproducible, yip!"
fi
get_filesize $image
if [ -f $TMPDIR/targets/$target/$subtarget/$image.html ] ; then
@@ -169,7 +171,12 @@ for i in * ; do
rm -f $BASE/lede/dbd/$i/$j.html # cleanup from previous (unreproducible) tests - if needed
continue
fi
- call_diffoscope $i $j
+
+ if [ "$(sha256sum $i $j | cut -f 1 -d ' ' | uniq -c | wc -l)" != "1" ] ; then
+ call_diffoscope $i $j
+ else
+ echo "$(date -u) - $i/$j is reproducible, yip!"
+ fi
get_filesize $j
if [ -f $TMPDIR/$i/$j.html ] ; then
mkdir -p $BASE/lede/dbd/$i/$(dirname $j)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list