mirror of
https://github.com/servo/servo.git
synced 2025-06-29 19:43:39 +01:00
Bootstrap from official static.rust-lang.org when SNI is available
This commit is contained in:
parent
1f4c0c63de
commit
664f2829a9
3 changed files with 26 additions and 15 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue