summaryrefslogtreecommitdiffstats
path: root/debootstrap
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-12-27 02:19:48 (GMT)
committerJoey Hess <joey@kitenet.net>2013-12-27 02:19:48 (GMT)
commit230dd6cae574a5d75e1100e3de2b71eb491822f4 (patch)
treeae1907359360ee9a60f637deba38ad6519d71f33 /debootstrap
parente6380aad7870678bd23a9f4e23beb73c2b20d79c (diff)
downloaddebootstrap-230dd6cae574a5d75e1100e3de2b71eb491822f4.zip
debootstrap-230dd6cae574a5d75e1100e3de2b71eb491822f4.tar.gz
debootstrap-230dd6cae574a5d75e1100e3de2b71eb491822f4.tar.bz2
Avoid writing https urls into sources.list, as apt does not support https.
When a https url is used, fall back to the default mirror for sources.list.
Diffstat (limited to 'debootstrap')
-rwxr-xr-xdebootstrap2
1 files changed, 1 insertions, 1 deletions
diff --git a/debootstrap b/debootstrap
index f7ee5d1..fef1ab5 100755
--- a/debootstrap
+++ b/debootstrap
@@ -652,7 +652,7 @@ if am_doing_phase second_stage; then
if [ -e "$TARGET/etc/apt/sources.list" ]; then
rm -f "$TARGET/etc/apt/sources.list"
fi
- if [ "${MIRRORS#http*://}" != "$MIRRORS" ]; then
+ if [ "${MIRRORS#http://}" != "$MIRRORS" ]; then
setup_apt_sources "${MIRRORS%% *}"
mv_invalid_to "${MIRRORS%% *}"
else