Skip to content

Commit

Permalink
Merge pull request #1517 from MikeMcQuaid/audit-stable-version-empty
Browse files Browse the repository at this point in the history
audit: check that there are any stable revisions.
  • Loading branch information
MikeMcQuaid authored Nov 16, 2016
2 parents 34f08a9 + 27ea94a commit 768a08a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/dev-cmd/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,8 @@ def audit_revision_and_version_scheme
return if formula.revision.zero?
if formula.stable
revision_map = attributes_map[:revision][:stable]
if revision_map[formula.stable.version].empty? # check stable spec
stable_revisions = revision_map[formula.stable.version]
if !stable_revisions || stable_revisions.empty?
problem "'revision #{formula.revision}' should be removed"
end
else # head/devel-only formula
Expand Down

0 comments on commit 768a08a

Please sign in to comment.