You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2019/05/16 23:43:34 UTC
[hbase] branch master updated: HBASE-22429 hbase-vote download step
requires URL to end with '/' (#243)
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new 25a1c5a HBASE-22429 hbase-vote download step requires URL to end with '/' (#243)
25a1c5a is described below
commit 25a1c5a619420c6e265ea3cfb39e361f7814c604
Author: Tak Lon (Stephen) Wu <wu...@amazon.com>
AuthorDate: Thu May 16 16:43:27 2019 -0700
HBASE-22429 hbase-vote download step requires URL to end with '/' (#243)
---
dev-support/hbase-vote.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dev-support/hbase-vote.sh b/dev-support/hbase-vote.sh
index 4bcd680..0a48861 100755
--- a/dev-support/hbase-vote.sh
+++ b/dev-support/hbase-vote.sh
@@ -74,6 +74,7 @@ operator may still consider to verify the following manually
3. Other concerns if any
__EOF
+[[ "${SOURCE_URL}" != */ ]] && SOURCE_URL="${SOURCE_URL}/"
HBASE_RC_VERSION=$(tr "/" "\n" <<< "${SOURCE_URL}" | tail -n2)
HBASE_VERSION=$(echo "${HBASE_RC_VERSION}" | sed -e 's/RC[0-9]//g' | sed -e 's/hbase-//g')
JAVA_VERSION=$(java -version 2>&1 | cut -f3 -d' ' | head -n1 | sed -e 's/"//g')
@@ -106,7 +107,7 @@ function download_and_import_keys() {
function download_release_candidate () {
# get all files from release candidate repo
- wget --recursive --no-parent "${SOURCE_URL}"
+ wget -r -np -nH --cut-dirs 4 "${SOURCE_URL}"
}
function verify_signatures() {
@@ -169,7 +170,7 @@ __EOF
download_and_import_keys
download_release_candidate
-pushd dist.apache.org/repos/dist/dev/hbase/"${HBASE_RC_VERSION}"
+pushd "${HBASE_RC_VERSION}"
execute verify_signatures
execute verify_checksums