Skip to content

Commit 2cf52b4

Browse files
authored
### Rationale for this change We only need https://dist.apache.org/repos/dist/release/arrow/KEYS . ### What changes are included in this PR? Always use https://dist.apache.org/repos/dist/release/arrow/KEYS . ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: apache#47084 Authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent bb33493 commit 2cf52b4

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

dev/release/.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
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.

dev/release/verify-release-candidate.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

114116
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"
116120
}
117121

118122
import_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

0 commit comments

Comments
 (0)