Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpm: update livecheck #132158

Merged
merged 1 commit into from
May 27, 2023
Merged

Conversation

samford
Copy link
Member

@samford samford commented May 27, 2023

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

The existing livecheck block for rpm is returning 4.18.90 as the newest version but this corresponds to "RPM 4.19 ALPHA" on the first-party download page. This PR resolves the issue by updating the regex to omit versions with a 90+ patch version, so the check will correctly return 4.18.1 as the newest version.

For what it's worth, this regex uses a modified version of the usual v?(\d+\.\d+\.(?:\d|[1-8]\d+)(?:\.\d+)*) pattern. The difference is that the modified pattern in this PR will also match versions without a patch (or beyond), if upstream were to ever release something like 4.19 instead of 4.19.0 (or 4.19.0.1). There aren't any active examples of this currently but it's arguably better to account for it than to have this quietly fail to match a version in the future.

@samford samford added livecheck Issues or PRs related to livecheck CI-syntax-only Change only affects brew syntax, not the install. Only run syntax CI. labels May 27, 2023
@github-actions github-actions bot added the lua Lua use is a significant feature of the PR or issue label May 27, 2023
@nandahkrishna nandahkrishna added this pull request to the merge queue May 27, 2023
Merged via the queue into Homebrew:master with commit c58a2e6 May 27, 2023
@samford samford deleted the rpm-update-livecheck branch May 28, 2023 02:40
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 28, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI-syntax-only Change only affects brew syntax, not the install. Only run syntax CI. livecheck Issues or PRs related to livecheck lua Lua use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants