Bug 1324040 - mozboot: Download rustup without SNI. r?froydnj
It seems older Python (e.g. 2.7 from Ubuntu 14.04) doesn't
support SNI, so we get a TLS error with the canonical
https://static.rust-lang.org/ url even when using the
`requests` module.
Fall back to the no-CNAME host instead which is ugly but works.
Thanks to Simon Sapin for the suggestion.
MozReview-Commit-ID: I6V5ASijuKi
--- a/python/mozboot/mozboot/rust.py
+++ b/python/mozboot/mozboot/rust.py
@@ -7,17 +7,19 @@ from __future__ import print_function
import errno
import os
import stat
import subprocess
import sys
# Base url for pulling the rustup installer.
-RUSTUP_URL_BASE = 'https://static.rust-lang.org/rustup'
+# Use the no-CNAME host for compatibilty with Python 2.7
+# which doesn't support SNI.
+RUSTUP_URL_BASE = 'https://static-rust-lang-org.s3.amazonaws.com/rustup'
# Pull this to get the lastest stable version number.
RUSTUP_MANIFEST = os.path.join(RUSTUP_URL_BASE, 'release-stable.toml')
# We bake in a known version number so we can verify a checksum.
RUSTUP_VERSION = '0.6.5'
# SHA-256 checksums of the installers, per platform.