make_mirror.sh: don't run debootstrap for untested scenario

This commit is contained in:
Johannes 'josch' Schauer 2018-12-28 07:16:59 +01:00
parent e6ce901be4
commit 1aec25f043
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -251,6 +251,10 @@ mirror="http://127.0.0.1/debian"
SOURCE_DATE_EPOCH=$(date --date="$(grep-dctrl -s Date -n '' "$mirrordir/dists/unstable/Release")" +%s)
for dist in stable testing unstable; do
for variant in minbase buildd -; do
# skip because of different userids for apt/systemd
if [ "$dist" = 'stable' ] && [ "$variant" = '-' ]; then
continue
fi
echo running debootstrap --no-merged-usr --variant=$variant $dist /tmp/debian-$dist-debootstrap $mirror
cat << END > shared/test.sh
#!/bin/sh