mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Fail if the snapshot cannot be fetched
This commit is contained in:
parent
c37ad696fc
commit
37f28836ae
1 changed files with 1 additions and 0 deletions
1
configure
vendored
1
configure
vendored
|
@ -424,6 +424,7 @@ then
|
||||||
SNAPSHOT_URL="https://servo-rust.s3.amazonaws.com/$(cat ${CFG_SRC_DIR}/src/compiler/rust-snapshot-hash)-${DEFAULT_TARGET}.tar.gz"
|
SNAPSHOT_URL="https://servo-rust.s3.amazonaws.com/$(cat ${CFG_SRC_DIR}/src/compiler/rust-snapshot-hash)-${DEFAULT_TARGET}.tar.gz"
|
||||||
step_msg "Fetching snapshot from ${SNAPSHOT_URL}"
|
step_msg "Fetching snapshot from ${SNAPSHOT_URL}"
|
||||||
curl -o ${CFG_BUILD_DIR}/rust_snapshot/snapshot-${SNAPSHOT_HASH}.tgz ${SNAPSHOT_URL}
|
curl -o ${CFG_BUILD_DIR}/rust_snapshot/snapshot-${SNAPSHOT_HASH}.tgz ${SNAPSHOT_URL}
|
||||||
|
need_ok "Fetching the snapshot failed"
|
||||||
fi
|
fi
|
||||||
rm -rf ${CFG_BUILD_DIR}/rust_snapshot/${SNAPSHOT_VERSION}-${DEFAULT_TARGET}
|
rm -rf ${CFG_BUILD_DIR}/rust_snapshot/${SNAPSHOT_VERSION}-${DEFAULT_TARGET}
|
||||||
tar -zxf ${CFG_BUILD_DIR}/rust_snapshot/snapshot-${SNAPSHOT_HASH}.tgz -C ${CFG_BUILD_DIR}/rust_snapshot/
|
tar -zxf ${CFG_BUILD_DIR}/rust_snapshot/snapshot-${SNAPSHOT_HASH}.tgz -C ${CFG_BUILD_DIR}/rust_snapshot/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue