This will be used to access the security archive in a more private way.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
[ -z "$bare" ] && [ -z "$ubuntu" ] && chroot "$rootdir" apt-get install -y --no-install-recommends locales-all
chroot "$rootdir" apt-get install -y --no-install-recommends build-essential
[ -z "$bare" ] && chroot "$rootdir" apt-get install -y --no-install-recommends zsh less vim fakeroot devscripts gdb
+if [ -n "$buildd" ] ; then
+ case "$suite" in
+ wheezy|jessie|strech)
+ chroot "$rootdir" apt-get install -y --no-install-recommends apt-transport-https
+ ;;
+ *)
+ # Nothing to do, https support is part of the apt package
+ ;;
+ esac
+fi
rm -f "$rootdir/etc/apt/sources.list" "$rootdir/etc/apt/sources.list.d/*"
chroot "$rootdir" apt-get clean
umount "$rootdir/dev" 2>/dev/null || true