Skip to content

Commit

Permalink
audit: check bind for development versions
Browse files Browse the repository at this point in the history
  • Loading branch information
javian committed Jun 10, 2019
1 parent c95cf90 commit 57fa213
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Library/Homebrew/dev-cmd/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,15 @@ def audit_specs
problem "#{stable.version} is a development release" if minor_version.odd?
end
end

case formula.name
when /bind/
version = Version.parse(stable.url)
return if version.to_s.split(".").second.to_i.even?

problem "BIND releases with odd minor version numbers (9.13.x, 9.15.x, etc) are " \
"for testing, and can be unstable and are not suitable for general deployment. " \
end
end

def audit_revision_and_version_scheme
Expand Down

0 comments on commit 57fa213

Please sign in to comment.