summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-02-11 17:46:12 (GMT)
committerColin Watson <cjwatson@debian.org>2014-02-11 17:46:12 (GMT)
commit358db8fd81e817b81094f75c06fcad6a44cfd248 (patch)
tree2e6c2bd169f69c73d8ff2d41a7bb63882b1380a9 /scripts
parent428cc6e84507fd62eea8af263beb92246c2380be (diff)
downloaddebootstrap-358db8fd81e817b81094f75c06fcad6a44cfd248.zip
debootstrap-358db8fd81e817b81094f75c06fcad6a44cfd248.tar.gz
debootstrap-358db8fd81e817b81094f75c06fcad6a44cfd248.tar.bz2
Install apt-transport-https if installing from an HTTPS mirror (LP: #1135163).
It may still be necessary to copy certificates into place, but there's at least a reasonable chance that somebody installing from HTTPS may want to keep using it, and we have to install apt-transport-https at this point otherwise they won't be able to do that end-to-end.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gutsy6
-rw-r--r--scripts/sid6
2 files changed, 12 insertions, 0 deletions
diff --git a/scripts/gutsy b/scripts/gutsy
index 597562c..69513f4 100644
--- a/scripts/gutsy
+++ b/scripts/gutsy
@@ -43,6 +43,12 @@ work_out_debs () {
elif doing_variant fakechroot || doing_variant minbase; then
base="apt"
fi
+
+ case $MIRRORS in
+ https://*)
+ base="$base apt-transport-https"
+ ;;
+ esac
}
first_stage_install () {
diff --git a/scripts/sid b/scripts/sid
index 70ae207..241f867 100644
--- a/scripts/sid
+++ b/scripts/sid
@@ -32,6 +32,12 @@ work_out_debs () {
# ldd.fake needs binutils
required="$required binutils"
fi
+
+ case $MIRRORS in
+ https://*)
+ base="$base apt-transport-https"
+ ;;
+ esac
}
first_stage_install () {