From f827914ce7d26fb9df308b2049e5459081fef849 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 23 Jul 2016 21:00:46 +0200 Subject: reproducible/openwrt|lede: move create_results_dirs upwards to fix dir not exists error Both builds try to write the logs into this directory even it doesn't exists before Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 4 ++-- bin/reproducible_openwrt.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 3c4d77e9..176c58aa 100755 --- a/bin/reproducible_lede.sh +++ b/bin/reproducible_lede.sh @@ -45,6 +45,8 @@ git log -1 #./scripts/feeds update -a #./scripts/feeds install -a +create_results_dirs lede + build_two_times lede ar71xx_generic_ARCHERC7 "CONFIG_TARGET_ar71xx_generic=y\nCONFIG_TARGET_ar71xx_generic_ARCHERC7=y\n" # for now we only build one architecture until it's at most reproducible @@ -98,7 +100,6 @@ DBD_BAD_PKGS_HTML=$(mktemp --tmpdir=$TMPDIR) GOOD_IMAGES=0 ALL_IMAGES=0 SIZE="" -create_results_dirs lede cd $TMPDIR/b1 tree . for i in * ; do @@ -138,7 +139,6 @@ GOOD_PERCENT_IMAGES=$(echo "scale=1 ; ($GOOD_IMAGES*100/$ALL_IMAGES)" | bc) # run diffoscope on the packages GOOD_PACKAGES=0 ALL_PACKAGES=0 -create_results_dirs lede cd $TMPDIR/b1 for i in * ; do cd $i diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index 3f37ea29..095a5eed 100755 --- a/bin/reproducible_openwrt.sh +++ b/bin/reproducible_openwrt.sh @@ -45,6 +45,8 @@ git log -1 #./scripts/feeds update -a #./scripts/feeds install -a +create_results_dirs openwrt + build_two_times openwrt ar71xx_generic_ARCHERC7 "CONFIG_TARGET_ar71xx_generic=y\nCONFIG_TARGET_ar71xx_generic_ARCHERC7=y\n" # for now we only build one architecture until it's at most reproducible @@ -98,7 +100,6 @@ DBD_BAD_PKGS_HTML=$(mktemp --tmpdir=$TMPDIR) GOOD_IMAGES=0 ALL_IMAGES=0 SIZE="" -create_results_dirs openwrt cd $TMPDIR/b1 tree . for i in * ; do @@ -138,7 +139,6 @@ GOOD_PERCENT_IMAGES=$(echo "scale=1 ; ($GOOD_IMAGES*100/$ALL_IMAGES)" | bc) # run diffoscope on the packages GOOD_PACKAGES=0 ALL_PACKAGES=0 -create_results_dirs openwrt cd $TMPDIR/b1 for i in * ; do cd $i -- cgit v1.2.3-70-g09d2