summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--debian/changelog6
-rw-r--r--scripts/gutsy6
-rw-r--r--scripts/sid6
3 files changed, 18 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 01c5fa1..ddeaa44 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,12 @@
debootstrap (1.0.58) UNRELEASED; urgency=medium
* Policy version 3.9.5: no changes required.
+ * 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.
-- Colin Watson <cjwatson@debian.org> Sat, 08 Feb 2014 23:33:58 +0000
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 () {