This is an automated email from the ASF dual-hosted git repository. raulcd pushed a commit to branch maint-26.0.x in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 164efecdda979a9e403b1474be095ae72861274b 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 9bde70ed0d..6ec7582d7c 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)))
