summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-06-13 18:38:04 +0200
committerHolger Levsen <holger@layer-acht.org>2017-06-18 17:49:01 +0200
commit412f53318d04abf448ea558f751715c54716e3f4 (patch)
tree7ff9421640b6d862e5bd21b9af32dd5f4f96bb80 /bin
parentcd92a5a5f2891385896558da3701d6fc5382713a (diff)
downloadjenkins.debian.net-412f53318d04abf448ea558f751715c54716e3f4.tar.xz
reproducible_lede: do a quick sha256sum before calling diffoscope
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_lede.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh
index 8e0e8d5f..659f40e5 100755
--- a/bin/reproducible_lede.sh
+++ b/bin/reproducible_lede.sh
@@ -141,7 +141,11 @@ for target in * ; do
rm -f $BASE/lede/dbd/targets/$target/$subtarget/$image.html # cleanup from previous (unreproducible) tests - if needed
continue
fi
- call_diffoscope targets/$target/$subtarget $image
+ # lets do a short sha256sum here, if not equal call diffoscope
+ 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
+ fi
get_filesize $image
if [ -f $TMPDIR/targets/$target/$subtarget/$image.html ] ; then
mkdir -p $BASE/lede/dbd/targets/$target/$subtarget