Skip to content

Commit 258df1c

Browse files
authored
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]>
1 parent 6b1ad60 commit 258df1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎dev/release/download_rc_binaries.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def _download_url(self, url, dest_path, *, extra_args=None):
148148
def _curl_version(self):
149149
cmd = ["curl", "--version"]
150150
out = subprocess.run(cmd, capture_output=True, check=True).stdout
151-
match = re.search(r"curl (\d+)\.(\d+)\.(\d+) ", out.decode())
151+
match = re.search(r"curl (\d+)\.(\d+)\.(\d+)(-rc\d+)? ", out.decode())
152152
return (int(match.group(1)), int(match.group(2)), int(match.group(3)))
153153

154154

0 commit comments

Comments
 (0)