mirror of
https://github.com/servo/servo.git
synced 2025-06-19 22:59:03 +01:00
Fix "looking for rustc at …" message for stable when already bootstrapped
Also always download from static-rust-lang-org.s3.amazonaws.com instead of static.rust-lang.org. They host the same content, but the latter goes through a CDN and has a TLS certificate that failed to verify and some Python versions: https://github.com/servo/servo/issues/3582 https://github.com/servo/servo/pull/3971
This commit is contained in:
parent
a39170728d
commit
6ae5598a5c
2 changed files with 7 additions and 10 deletions
|
@ -218,10 +218,11 @@ class CommandBase(object):
|
|||
return self._use_stable_rust
|
||||
|
||||
def rust_path(self):
|
||||
version = self.rust_version()
|
||||
if self._use_stable_rust:
|
||||
return "rustc-%s-%s" % (self.rust_version(), host_triple())
|
||||
return "%s/rustc-%s-%s" % (version, version, host_triple())
|
||||
else:
|
||||
return "%s/rustc-nightly-%s" % (self.rust_version(), host_triple())
|
||||
return "%s/rustc-nightly-%s" % (version, host_triple())
|
||||
|
||||
def rust_version(self):
|
||||
if self._rust_version is None or self._use_stable_rust != self._rust_version_is_stable:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue