Skip to content

Commit

Permalink
ARROW-8005: [Tools] Update apache mirror links
Browse files Browse the repository at this point in the history
Change urls from `www*.apache.org/dist` to `downloads.apache.org`.

Closes #6817 from fsaintjacques/ARROW-8005-apache-download-url

Authored-by: François Saint-Jacques <fsaintjacques@gmail.com>
Signed-off-by: Wes McKinney <wesm+git@apache.org>
  • Loading branch information
fsaintjacques authored and wesm committed Apr 2, 2020
1 parent b3f5a93 commit ba6d916
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions dev/release/post-03-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ popd
# Update versions.yml
pinned_version=$(echo ${version} | sed -e 's/\.[^.]*$/.*/')

apache_download_url=https://downloads.apache.org

cat <<YAML > "${versions_yml}"
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
Expand Down Expand Up @@ -243,9 +245,9 @@ current:
tarball_name: 'apache-arrow-${version}.tar.gz'
mirrors-tar: 'https://www.apache.org/dyn/closer.lua/arrow/arrow-${version}/apache-arrow-${version}.tar.gz'
java-artifacts: 'http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.arrow%22%20AND%20v%3A%22${version}%22'
asc: 'https://www.apache.org/dist/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.asc'
sha256: 'https://www.apache.org/dist/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha256'
sha512: 'https://www.apache.org/dist/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha512'
asc: '${apache_download_url}/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.asc'
sha256: '${apache_download_url}/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha256'
sha512: '${apache_download_url}/dist/arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha512'
YAML
git add "${versions_yml}"

Expand Down
2 changes: 1 addition & 1 deletion dev/release/post-04-ruby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rm -f ${tar_gz}
curl \
--remote-name \
--fail \
https://www-us.apache.org/dist/arrow/arrow-${version}/${tar_gz}
https://downloads.apache.org/arrow/arrow-${version}/${tar_gz}
rm -rf ${archive_name}
tar xf ${tar_gz}
modules=()
Expand Down
2 changes: 1 addition & 1 deletion dev/release/post-05-js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ rm -f ${tar_gz}
curl \
--remote-name \
--fail \
https://www-us.apache.org/dist/arrow/arrow-${version}/${tar_gz}
https://downloads.apache.org/arrow/arrow-${version}/${tar_gz}
rm -rf ${archive_name}
tar xf ${tar_gz}
pushd ${archive_name}/js
Expand Down
2 changes: 1 addition & 1 deletion dev/release/post-06-csharp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rm -f ${tar_gz}
curl \
--remote-name \
--fail \
https://www-us.apache.org/dist/arrow/arrow-${version}/${tar_gz}
https://downloads.apache.org/arrow/arrow-${version}/${tar_gz}
rm -rf ${archive_name}
tar xf ${tar_gz}
pushd ${archive_name}/csharp
Expand Down
2 changes: 1 addition & 1 deletion dev/release/post-07-rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ rm -f ${tar_gz}
curl \
--remote-name \
--fail \
https://www-us.apache.org/dist/arrow/arrow-${version}/${tar_gz}
https://downloads.apache.org/arrow/arrow-${version}/${tar_gz}
rm -rf ${archive_name}
tar xf ${tar_gz}
modules=()
Expand Down

0 comments on commit ba6d916

Please sign in to comment.