diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-06-19 01:56:15 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-19 02:08:22 +0200 |
commit | 889ae7b36b45c6bad0218767675a64b86f09cd4b (patch) | |
tree | 56884ed836a1d35fa19a2dc4938e8e149dcc3d44 | |
parent | 7c3d8e036e0fc8a5ebb2cd1af0b4f9280f202db6 (diff) | |
download | jenkins.debian.net-889ae7b36b45c6bad0218767675a64b86f09cd4b.tar.xz |
reproducible_lede: shortcut packages via sha256sum
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_lede.sh | 9 |
1 files changed, 8 insertions, 1 deletions
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) |