kou commented on PR #43294:
URL: https://github.com/apache/arrow/pull/43294#issuecomment-2234247421

   Ah, we need to run `current_version` before we call `update_versions`:
   
   ```diff
   diff --git a/dev/release/post-12-bump-versions.sh 
b/dev/release/post-12-bump-versions.sh
   index 422821a66b..206da6ccb4 100755
   --- a/dev/release/post-12-bump-versions.sh
   +++ b/dev/release/post-12-bump-versions.sh
   @@ -41,6 +41,8 @@ version=$1
    next_version=$2
    next_version_snapshot="${next_version}-SNAPSHOT"
    
   +current_version_before_bump="$(current_version)"
   +
    case "${version}" in
      *.0.0)
        is_major_release=1
   @@ -64,7 +66,7 @@ if [ ${BUMP_VERSION_POST_TAG} -gt 0 ]; then
    fi
    
    if [ ${BUMP_DEB_PACKAGE_NAMES} -gt 0 ] && \
   -     [ "${next_version}" != "$(current_version)" ]; then
   +     [ "${next_version}" != "${current_version_before_bump}" ]; then
      update_deb_package_names "${version}" "${next_version}"
    fi
    
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to