Skip to content

Commit 696412d

Browse files
committedJul 6, 2017
Auto merge of #43092 - aidanhs:aphs-retry-llvm-tarball, r=alexcrichton
Retry downloading llvm commit tarball As promised on #42816 (comment) r? @alexcrichton
2 parents cd72f2e + 7c8523e commit 696412d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/ci/init_repo.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ for module in $modules; do
6161
if [ "$module" = src/llvm ]; then
6262
commit="$(git ls-tree HEAD src/llvm | awk '{print $3}')"
6363
git rm src/llvm
64-
curl -sSL -O "https://github.com/rust-lang/llvm/archive/$commit.tar.gz"
64+
retry sh -c "rm -f $commit.tar.gz && \
65+
curl -sSL -O https://github.com/rust-lang/llvm/archive/$commit.tar.gz"
6566
tar -C src/ -xf "$commit.tar.gz"
6667
rm "$commit.tar.gz"
6768
mv "src/llvm-$commit" src/llvm

0 commit comments

Comments
 (0)
Please sign in to comment.