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 18
18
# The GPG key ID to sign artifacts. The GPG key ID must be registered
19
19
# to both of the followings:
20
20
#
21
- # * https://dist.apache.org/repos/dist/dev/arrow/KEYS
22
21
# * https://dist.apache.org/repos/dist/release/arrow/KEYS
23
22
#
24
23
# 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() {
100
100
return $(( ${n_gpus} < 1 ))
101
101
}
102
102
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"
104
105
105
- download_dist_file () {
106
+ download_file () {
106
107
curl \
107
108
--silent \
108
109
--show-error \
109
110
--fail \
110
111
--location \
111
- --remote-name $ARROW_DIST_URL /$1
112
+ --output " $2 " \
113
+ " $1 "
112
114
}
113
115
114
116
download_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 "
116
120
}
117
121
118
122
import_gpg_keys () {
119
123
if [ " ${GPGKEYS_ALREADY_IMPORTED:- 0} " -gt 0 ]; then
120
124
return 0
121
125
fi
122
- download_dist_file KEYS
126
+ download_file " ${ARROW_KEYS_URL} " KEYS
123
127
gpg --import KEYS
124
128
125
129
GPGKEYS_ALREADY_IMPORTED=1
You can’t perform that action at this time.
0 commit comments