Followup for bug 1421100: deterministically download rustc 1.23.0-beta.2. r=me, a=bustage on a CLOSED TREE

This commit is contained in:
Mike Hommey
2018-01-04 14:41:01 +09:00
parent 562e4592a2
commit f588e545d6
2 changed files with 8 additions and 2 deletions

View File

@@ -242,7 +242,13 @@ def tar_for_host(host):
def fetch_manifest(channel='stable'):
url = 'https://static.rust-lang.org/dist/channel-rust-' + channel + '.toml'
if '-' in channel:
channel, date = channel.split('-', 1)
prefix = '/' + date
else:
prefix = ''
url = 'https://static.rust-lang.org/dist%s/channel-rust-%s.toml' % (
prefix, channel)
req = requests.get(url)
req.raise_for_status()
manifest = toml.loads(req.content)