summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_lede.sh
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-18 22:02:05 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-18 22:06:36 +0200
commit0dc48792502d3269b0a60f72e8949e696f0c339f (patch)
treefc41fb48c3560073f2818ae6a6cf66c6c6371f66 /bin/reproducible_lede.sh
parentd5519c02c9daf789bd609ff534c891986899ff43 (diff)
downloadjenkins.debian.net-0dc48792502d3269b0a60f72e8949e696f0c339f.tar.xz
reproducible_lede: add debug around sha256
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_lede.sh')
-rwxr-xr-xbin/reproducible_lede.sh5
1 files changed, 5 insertions, 0 deletions
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