diff options
author | Joey Hess <joey@kitenet.net> | 2013-12-27 02:19:48 (GMT) |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-12-27 02:19:48 (GMT) |
commit | 230dd6cae574a5d75e1100e3de2b71eb491822f4 (patch) | |
tree | ae1907359360ee9a60f637deba38ad6519d71f33 /debootstrap | |
parent | e6380aad7870678bd23a9f4e23beb73c2b20d79c (diff) | |
download | debootstrap-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-x | debootstrap | 2 |
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 |