Install apt-transport-https in the buildd chroots
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 13 Feb 2018 08:54:39 +0000 (09:54 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Tue, 13 Feb 2018 08:54:39 +0000 (09:54 +0100)
This will be used to access the security archive in a more private way.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/schroot/files/setup-dchroot

index a3187dd..1df0172 100755 (executable)
@@ -383,6 +383,16 @@ chmod +x "$rootdir/usr/local/sbin/policy-rc.d"
 [ -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