From 0dc48792502d3269b0a60f72e8949e696f0c339f Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 18 Jun 2017 22:02:05 +0200 Subject: reproducible_lede: add debug around sha256 Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin/reproducible_lede.sh') diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 659f40e5..845e91c5 100755 --- a/bin/reproducible_lede.sh +++ b/bin/reproducible_lede.sh @@ -142,6 +142,11 @@ for target in * ; do continue fi # lets do a short sha256sum here, if not equal call diffoscope + echo "debug sha256: \"$TMPDIR/b1/targets/$target/$subtarget/$image\" \"$TMPDIR/b2/targets/$target/$subtarget/$image\"" + sha256sum "$TMPDIR/b1/targets/$target/$subtarget/$image" "$TMPDIR/b2/targets/$target/$subtarget/$image" + echo "$(sha256sum "$TMPDIR/b1/targets/$target/$subtarget/$image" "$TMPDIR/b2/targets/$target/$subtarget/$image" \ + | cut -f 1 -d ' ' | uniq -c | wc -l)" '!=' "1" + 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 -- cgit v1.2.3-54-g00ecf