if [ "$1" = "setup-start" ] || [ "$1" = "setup-recover" ]; then
SRCL="${CHROOT_PATH}/etc/apt/sources.list.d/auto.list"
rm -f "$SRCL"
- mirror=${MIRROR:-cdn.debian.net}
+ mirror=${MIRROR:-http://cdn.debian.net/debian}
case "${SUITE_BASE:-}" in
experimental)
- echo "deb http://$mirror/debian/ sid main" >> "$SRCL"
- echo "deb-src http://$mirror/debian/ sid main" >> "$SRCL"
+ echo "deb $mirror sid main" >> "$SRCL"
+ echo "deb-src $mirror sid main" >> "$SRCL"
;;
sid)
;;
echo "deb-src http://security.debian.org/ ${SUITE_BASE}/updates main" >> "$SRCL"
;;
esac
- echo "deb http://$mirror/debian/ ${SUITE_BASE} main" >> "$SRCL"
- echo "deb-src http://$mirror/debian/ ${SUITE_BASE} main" >> "$SRCL"
+ echo "deb $mirror ${SUITE_BASE} main" >> "$SRCL"
+ echo "deb-src $mirror ${SUITE_BASE} main" >> "$SRCL"
case "${SUITE_VARIANT:-}" in
backports)
echo "deb-src http://backports.debian.org/debian-backports/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
;;
*)
- echo "deb http://$mirror/debian/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
- echo "deb-src http://$mirror/debian/ ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
+ echo "deb $mirror ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
+ echo "deb-src $mirror ${SUITE_BASE}-${SUITE_VARIANT} main" >> "$SRCL"
;;
esac
;;
if [ -e /etc/schroot/dsa/default-mirror ]; then
mirror=$(cat /etc/schroot/dsa/default-mirror )
fi
-mirror="${mirror:-cdn.debian.net}"
+mirror="${mirror:-http://cdn.debian.net/debian}"
force=""
basedir="/srv/chroot"
declare -a cleanup
--include="apt" \
--variant=buildd \
--arch="$arch" \
- "$suite" "$rootdir" "http://$mirror/debian"
+ "$suite" "$rootdir" "$mirror"
echo "$tuple" > $rootdir/etc/debian_chroot
chroot "$rootdir" apt-get update