add https support for mirrorlist

This commit is contained in:
Tobias Powalowski 2013-07-11 16:14:11 +02:00
parent d1e2af6ff1
commit 5b69be23a4

View file

@ -2849,7 +2849,7 @@ getsource() {
select_mirror() {
DIALOG --msgbox "Keep in mind ftp.archlinux.org is throttled.\nPlease select another mirror to get full download speed." 8 65
# FIXME: this regex doesn't honor commenting
MIRRORS=$(egrep -o '((ftp)|(http))://[^/]*' "${MIRRORLIST}" | sed 's|$| _|g')
MIRRORS=$(egrep -o '((ftp)|(http)|(https))://[^/]*' "${MIRRORLIST}" | sed 's|$| _|g')
DIALOG --menu "Select an FTP/HTTP mirror" 14 55 7 \
${MIRRORS} \
"Custom" "_" 2>${ANSWER} || return 1