Skip to content

Commit

Permalink
GH-44885: [Dev][Release] Update test condition in utils-prepare.sh (#…
Browse files Browse the repository at this point in the history
…44862)

### Rationale for this change

The `update_versions` function in `dev/release/utils-prepare.sh` is called by `dev/release/post-12-bump-versions.sh` and one of the tasks it performs is to update `c_glib/generate-version-header.py` with new major versions. There was a bug in `update_versions` that incorrectly updated this file on minor releases, leading to duplicate major versions being listed. This change fixes that.

### What changes are included in this PR?

Fixed version of `update_versions` in `dev/release/utils-prepare.sh`.

### Are these changes tested?

Yes, locally.

### Are there any user-facing changes?

No.

Closes #44885
* GitHub Issue: #44885

Lead-authored-by: Sutou Kouhei <[email protected]>
Co-authored-by: Bryce Mecum <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
  • Loading branch information
amoeba authored Nov 30, 2024
1 parent 70343d3 commit 6d6cd42
Show file tree
Hide file tree
Showing 3 changed files with 279 additions and 188 deletions.
Loading

0 comments on commit 6d6cd42

Please sign in to comment.