File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1818# The GPG key ID to sign artifacts. The GPG key ID must be registered
1919# to both of the followings:
2020#
21- # * https://dist.apache.org/repos/dist/dev/arrow/KEYS
2221# * https://dist.apache.org/repos/dist/release/arrow/KEYS
2322#
2423# See these files how to import your GPG key ID to these files.
Original file line number Diff line number Diff line change @@ -100,26 +100,30 @@ detect_cuda() {
100100 return $(( ${n_gpus} < 1 ))
101101}
102102
103- ARROW_DIST_URL=' https://dist.apache.org/repos/dist/dev/arrow'
103+ ARROW_RC_URL=" https://dist.apache.org/repos/dist/dev/arrow"
104+ ARROW_KEYS_URL=" https://www.apache.org/dyn/closer.lua?action=download&filename=arrow/KEYS"
104105
105- download_dist_file () {
106+ download_file () {
106107 curl \
107108 --silent \
108109 --show-error \
109110 --fail \
110111 --location \
111- --remote-name $ARROW_DIST_URL /$1
112+ --output " $2 " \
113+ " $1 "
112114}
113115
114116download_rc_file () {
115- download_dist_file apache-arrow-${VERSION} -rc${RC_NUMBER} /$1
117+ download_file \
118+ " ${ARROW_RC_URL} /apache-arrow-${VERSION} -rc${RC_NUMBER} /$1 " \
119+ " $1 "
116120}
117121
118122import_gpg_keys () {
119123 if [ " ${GPGKEYS_ALREADY_IMPORTED:- 0} " -gt 0 ]; then
120124 return 0
121125 fi
122- download_dist_file KEYS
126+ download_file " ${ARROW_KEYS_URL} " KEYS
123127 gpg --import KEYS
124128
125129 GPGKEYS_ALREADY_IMPORTED=1
You can’t perform that action at this time.
0 commit comments