mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 15:36:59 +00:00
Revert "Merge pull request #7203 from hyuraku/audit_whether_prerelease-or-not"
This reverts commit081f6cdcd5, reversing changes made to12d3a2a2d2. This fails on some formulae with: Error: Not Found See: https://github.com/Homebrew/homebrew-core/pull/52031
This commit is contained in:
@@ -795,11 +795,6 @@ module Homebrew
|
||||
return if stable_url_minor_version.even?
|
||||
|
||||
problem "#{stable.version} is a development release"
|
||||
when %r{^https://github.com/}
|
||||
_, owner, repo, = URI.parse(stable.url).path.split("/")
|
||||
if GitHub.open_api("#{GitHub::API_URL}/repos/#{owner}/#{repo}/releases/tags/#{stable.version}")["prerelease"]
|
||||
problem "#{stable.version} is a GitHub prerelease"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user