This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 258df1c0440 GH-51817: [Dev][Release] Add support for RC curl in
`download_rc_binaries.py` (#51818)
258df1c0440 is described below
commit 258df1c04405d750eea17a421043bd1af36dbfff
Author: Sutou Kouhei <[email protected]>
AuthorDate: Tue Oct 6 17:27:29 2026 +0900
GH-51817: [Dev][Release] Add support for RC curl in
`download_rc_binaries.py` (#51818)
### Rationale for this change
`curl --version` uses the `${MAJOR}.${MINOR}.${PATCH}-rc${RC}` format for
RC curl and Debian GNU/Linux sid uses RC curl.
### What changes are included in this PR?
Accept the `-rc${RC}` part and ignore it.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
### Was AI used for this PR?
In accordance to the [AI generation
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
please disclose below whether and how AI was used in this PR.
**PR code and description written by:**
- [x] Human
- [ ] AI
**Reviewed before submission by:**
- [x] Human
- [ ] AI
- [ ] Not reviewed
* GitHub Issue: #51817
Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
---
dev/release/download_rc_binaries.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev/release/download_rc_binaries.py
b/dev/release/download_rc_binaries.py
index 9bde70ed0d0..6ec7582d7c6 100755
--- a/dev/release/download_rc_binaries.py
+++ b/dev/release/download_rc_binaries.py
@@ -148,7 +148,7 @@ class Downloader:
def _curl_version(self):
cmd = ["curl", "--version"]
out = subprocess.run(cmd, capture_output=True, check=True).stdout
- match = re.search(r"curl (\d+)\.(\d+)\.(\d+) ", out.decode())
+ match = re.search(r"curl (\d+)\.(\d+)\.(\d+)(-rc\d+)? ", out.decode())
return (int(match.group(1)), int(match.group(2)), int(match.group(3)))