From 2df8581bf9622cda0829644ff8d98aa9134b090d Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 27 Nov 2020 00:51:45 +0100 Subject: [PATCH] make_mirror.sh: use CMD instead of ./mmdebstrap --- make_mirror.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make_mirror.sh b/make_mirror.sh index a6770a5..4b43937 100755 --- a/make_mirror.sh +++ b/make_mirror.sh @@ -338,6 +338,8 @@ components=main : "${HAVE_QEMU:=yes}" : "${RUN_MA_SAME_TESTS:=yes}" : "${HAVE_PROOT:=yes}" +# by default, use the mmdebstrap executable in the current directory +: "${CMD:=./mmdebstrap}" if [ -e "$oldmirrordir/dists/$DEFAULT_DIST/Release" ]; then http_code=$(curl --output /dev/null --silent --location --head --time-cond "$oldmirrordir/dists/$DEFAULT_DIST/Release" --write-out '%{http_code}' "$mirror/dists/$DEFAULT_DIST/Release") @@ -446,7 +448,7 @@ if [ "$HAVE_QEMU" = "yes" ]; then else arches=$HOSTARCH fi - ./mmdebstrap --variant=apt --architectures=$arches --include="$pkgs" \ + $CMD --variant=apt --architectures=$arches --include="$pkgs" \ $DEFAULT_DIST - "$mirror" > "$tmpdir/debian-chroot.tar" cat << END > "$tmpdir/extlinux.conf"