From 6de644221067efffb11f2d79856c9deb13daea46 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Tue, 6 Oct 2026 13:34:23 +0900 Subject: [PATCH] GH-51817: [Dev][Release] Add support for RC curl in `download_rc_binaries.py` --- 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 9bde70ed0d09..6ec7582d7c60 100755 --- a/dev/release/download_rc_binaries.py +++ b/dev/release/download_rc_binaries.py @@ -148,7 +148,7 @@ def _download_url(self, url, dest_path, *, extra_args=None): 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)))