Skip to content

Commit

Permalink
Merge pull request #132158 from samford/rpm-update-livecheck
Browse files Browse the repository at this point in the history
rpm: update livecheck
  • Loading branch information
nandahkrishna authored May 27, 2023
2 parents 85412cf + a090990 commit c58a2e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Formula/rpm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ class Rpm < Formula
end
end

# Upstream uses a 90+ patch to indicate prerelease versions (e.g., the
# tarball for "RPM 4.19 ALPHA" is `rpm-4.18.90.tar.bz2`).
livecheck do
url "https://rpm.org/download.html"
regex(/href=.*?rpm[._-]v?(\d+(?:\.\d+)+)\.t/i)
regex(/href=.*?rpm[._-]v?(\d+\.\d+(?:\.(?:\d|[1-8]\d+)(?:\.\d+)*))\.t/i)
end

bottle do
Expand Down

0 comments on commit c58a2e6

Please sign in to comment.