aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-11-09 15:55:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-11-14 20:10:39 +0000
commitff518a130679684f2782db614ac9c029fdf78ab6 (patch)
tree878d5c9e9b4661d3c2ab121f54e2cd1f261c90ff
parentbcc6d4c633ee8aebdca29f8cd4413e8931fa3f48 (diff)
downloadaports-ff518a130679684f2782db614ac9c029fdf78ab6.tar.bz2
aports-ff518a130679684f2782db614ac9c029fdf78ab6.tar.xz
scripts/mkimage.sh: warn if no repo is set
-rw-r--r--scripts/mkimage.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mkimage.sh b/scripts/mkimage.sh
index b72b203338..8110982b03 100644
--- a/scripts/mkimage.sh
+++ b/scripts/mkimage.sh
@@ -217,6 +217,9 @@ for ARCH in $req_arch; do
cp -Pr /etc/apk/keys "$APKROOT/etc/apk/"
abuild-apk --arch "$ARCH" --root "$APKROOT" add --initdb
+ if [ -z "$REPODIR" ]; then
+ warning "no repository set"
+ fi
echo "$REPODIR" > "$APKROOT/etc/apk/repositories"
fi
abuild-apk update --root "$APKROOT"