From 889ae7b36b45c6bad0218767675a64b86f09cd4b Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 19 Jun 2017 01:56:15 +0200 Subject: reproducible_lede: shortcut packages via sha256sum Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_lede.sh') diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 701bf25d..3c658722 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) -- cgit v1.2.3-54-g00ecf