From 916be635edd76e9d8bc653ceb2dbd8810710c341 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Wed, 30 Oct 2024 19:00:17 +0900 Subject: [PATCH] GH-44556: [Release][MSYS2] Update python-pyarrow too (#44557) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Rationale for this change MSYS2 has `mingw-w64-python-pyarrow`. So we need to update it too. ### What changes are included in this PR? Update both of `mingw-w64-arrow` and `mingw-w64-python-pyarrow`. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #44556 Authored-by: Sutou Kouhei Signed-off-by: Raúl Cumplido --- dev/release/post-13-msys2.sh | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/dev/release/post-13-msys2.sh b/dev/release/post-13-msys2.sh index 154887cf38e78..8f8d035048a3b 100755 --- a/dev/release/post-13-msys2.sh +++ b/dev/release/post-13-msys2.sh @@ -55,25 +55,30 @@ echo "Creating branch: ${branch}" git branch -D ${branch} || : git checkout -b ${branch} -pkgbuild=mingw-w64-arrow/PKGBUILD -echo "Updating PKGBUILD: ${pkgbuild}" -sha256sum=$(curl \ - --location \ - "https://www.apache.org/dyn/closer.lua?action=download&filename=arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha256" | \ - cut -d' ' -f1) -sed \ - -i.bak \ - -e "s/^pkgver=.*\$/pkgver=${version}/" \ - -e "s/^pkgrel=.*\$/pkgrel=1/" \ - -e "s/^sha256sums=.*\$/sha256sums=('${sha256sum}'/" \ - ${pkgbuild} -rm ${pkgbuild}.bak -git add ${pkgbuild} -git commit -m "arrow: Update to ${version}" +for package in arrow python-pyarrow; do + pkgbuild=mingw-w64-${package}/PKGBUILD + echo "Updating PKGBUILD: ${pkgbuild}" + sha256sum=$(curl \ + --location \ + "https://www.apache.org/dyn/closer.lua?action=download&filename=arrow/arrow-${version}/apache-arrow-${version}.tar.gz.sha256" | \ + cut -d' ' -f1) + sed \ + -i.bak \ + -e "s/^pkgver=.*\$/pkgver=${version}/" \ + -e "s/^pkgrel=.*\$/pkgrel=1/" \ + -e "s/^sha256sums=.*\$/sha256sums=('${sha256sum}'/" \ + ${pkgbuild} + rm ${pkgbuild}.bak + git add ${pkgbuild} + git commit -m "${package}: Update to ${version}" +done for pkgbuild in $(grep -l -r '${MINGW_PACKAGE_PREFIX}-arrow' ./); do dir=${pkgbuild%/PKGBUILD} name=${dir#./mingw-w64-} + if [ ${name} = "python-pyarrow" ]; then + continue + fi echo "Incrementing ${name}'s pkgrel: ${pkgbuild}" pkgrel=$(grep -o '^pkgrel=.*' ${pkgbuild} | cut -d= -f2) sed \