From 37f28836ae4f63688f20ed1f829a8f8b19f8b769 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Tue, 5 Aug 2014 23:05:39 +0530 Subject: [PATCH] Fail if the snapshot cannot be fetched --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 979cdfce269..538a9f4e413 100755 --- a/configure +++ b/configure @@ -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" step_msg "Fetching snapshot from ${SNAPSHOT_URL}" curl -o ${CFG_BUILD_DIR}/rust_snapshot/snapshot-${SNAPSHOT_HASH}.tgz ${SNAPSHOT_URL} + need_ok "Fetching the snapshot failed" fi 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/