diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-10-18 22:50:20 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-10-18 22:50:20 +0200 |
commit | 664f2829a9d7e8f5a158111b80e71eb8b830f283 (patch) | |
tree | 1b1cf594de23f12f37c8b39d45f08051267631fa /python/servo/devenv_commands.py | |
parent | 1f4c0c63de99ba868816351844b553f805bc1391 (diff) | |
download | servo-664f2829a9d7e8f5a158111b80e71eb8b830f283.tar.gz servo-664f2829a9d7e8f5a158111b80e71eb8b830f283.zip |
Bootstrap from official static.rust-lang.org when SNI is available
Diffstat (limited to 'python/servo/devenv_commands.py')
-rw-r--r-- | python/servo/devenv_commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/devenv_commands.py b/python/servo/devenv_commands.py index 5e951bec8cd..8f51cfcc44d 100644 --- a/python/servo/devenv_commands.py +++ b/python/servo/devenv_commands.py @@ -21,7 +21,7 @@ from mach.decorators import ( Command, ) -from servo.command_base import CommandBase, cd, call +from servo.command_base import CommandBase, cd, call, STATIC_RUST_LANG_ORG_DIST from servo.build_commands import notify_build_done @@ -262,7 +262,7 @@ class MachCommands(CommandBase): description='Update the Rust version to latest Nightly', category='devenv') def rustup(self): - url = "https://static-rust-lang-org.s3.amazonaws.com/dist/channel-rust-nightly-date.txt" + url = STATIC_RUST_LANG_ORG_DIST + "/channel-rust-nightly-date.txt" nightly_date = urllib2.urlopen(url).read() filename = path.join(self.context.topdir, "rust-toolchain") with open(filename, "w") as f: |