Skip to content

Commit 46a2558

Browse files
committed
Extract variable
1 parent fa46391 commit 46a2558

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/bootstrap/bootstrap.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,12 @@ def download_toolchain(self):
438438

439439
tarball_suffix = '.tar.gz' if lzma is None else '.tar.xz'
440440

441+
toolchain_suffix = "{}-{}{}".format(rustc_channel, self.build, tarball_suffix)
442+
441443
tarballs_to_download = [
442-
("rust-std-{}-{}{}".format(rustc_channel, self.build, tarball_suffix),
443-
"rust-std-{}".format(self.build)),
444-
("rustc-{}-{}{}".format(rustc_channel, self.build, tarball_suffix), "rustc"),
445-
("cargo-{}-{}{}".format(rustc_channel, self.build, tarball_suffix), "cargo"),
444+
("rust-std-{}".format(toolchain_suffix), "rust-std-{}".format(self.build)),
445+
("rustc-{}".format(toolchain_suffix), "rustc"),
446+
("cargo-{}".format(toolchain_suffix), "cargo"),
446447
]
447448

448449
for filename, pattern in tarballs_to_download:

0 commit comments

Comments
 (0)