Skip to content

Commit 96be7d0

Browse files
committed
---
yaml --- r: 161750 b: refs/heads/master c: f867379 h: refs/heads/master v: v3
1 parent 590693f commit 96be7d0

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 694500b07d185f94dbaa47949ac664f55fd2e48b
2+
refs/heads/master: f86737973ac65a5c9d6c60d74acccfcfe0175fb4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cafe2966770ff377aad6dd9fd808e68055587c58
55
refs/heads/try: 0f0d21c1eb5c7be04d323e0b06faf252ad790af6

trunk/src/etc/rustup.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,8 @@ CARGO_LOCAL_INSTALL_SCRIPT="${CARGO_LOCAL_INSTALL_DIR}/install.sh"
418418

419419
# Fetch the package.
420420
download_package() {
421-
remote_url="$1"
422-
tarball_name="$2"
423-
remote_tarball="${remote_url}/${tarball_name}"
424-
local_tarball="${CFG_TMP_DIR}/${tarball_name}"
421+
remote_tarball="$1"
422+
local_tarball="$2"
425423

426424
msg "Downloading ${remote_tarball} to ${local_tarball}"
427425

@@ -469,14 +467,17 @@ install_packages() {
469467
mkdir -p "${CFG_TMP_DIR}"
470468
need_ok "failed to create create temporary installation directory"
471469

470+
RUST_LOCAL_TARBALL="${CFG_TMP_DIR}/${RUST_TARBALL_NAME}"
471+
CARGO_LOCAL_TARBALL="${CFG_TMP_DIR}/${CARGO_TARBALL_NAME}"
472+
472473
download_package \
473-
"${RUST_URL}" \
474-
"${RUST_TARBALL_NAME}"
474+
"${RUST_URL}/${RUST_TARBALL_NAME}" \
475+
"${RUST_LOCAL_TARBALL}"
475476

476477
if [ -z "${CFG_DISABLE_CARGO}" ]; then
477478
download_package \
478-
"${CARGO_URL}" \
479-
"${CARGO_TARBALL_NAME}"
479+
"${CARGO_URL}/${CARGO_TARBALL_NAME}" \
480+
"${CARGO_LOCAL_TARBALL}"
480481
fi
481482

482483
install_package \

0 commit comments

Comments
 (0)