summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-07-23 00:36:57 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-23 10:45:23 -0400
commit553e81439825500059d2391f2926a7c79e87bc8a (patch)
tree5d9fbc494a6f46cb03ce782d01ea0164fd33e680
parent92c5c7f2fd85289f776860d826f8b61fdd6a8dbc (diff)
downloadjenkins.debian.net-553e81439825500059d2391f2926a7c79e87bc8a.tar.xz
openwrt_common: make create_results_dirs flexible to allow lede builds
could be also adopted by reproducible_common.sh Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/reproducible_openwrt.sh2
-rw-r--r--bin/reproducible_openwrt_common.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 3b2c5478..3e523aaa 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -98,7 +98,7 @@ DBD_BAD_PKGS_HTML=$(mktemp --tmpdir=$TMPDIR)
GOOD_IMAGES=0
ALL_IMAGES=0
SIZE=""
-create_results_dirs
+create_results_dirs openwrt
cd $TMPDIR/b1
tree .
for i in * ; do
diff --git a/bin/reproducible_openwrt_common.sh b/bin/reproducible_openwrt_common.sh
index c280d05c..34226ddf 100644
--- a/bin/reproducible_openwrt_common.sh
+++ b/bin/reproducible_openwrt_common.sh
@@ -19,7 +19,8 @@ cleanup_tmpdirs() {
}
create_results_dirs() {
- mkdir -p $BASE/openwrt/dbd
+ local project=$1
+ mkdir -p $BASE/$project/dbd
}
# type = openwrt or lede