diff options
| author | Baptiste Fontaine | 2015-10-23 10:41:39 +0200 | 
|---|---|---|
| committer | Xu Cheng | 2015-10-23 19:44:19 +0800 | 
| commit | 774a508d1ac9e8be8a2d3cc3a753d513e1b962e3 (patch) | |
| tree | 5aed9b178c9ab62fa4c468b2928cc700106bf589 /Library/Homebrew/cmd/audit.rb | |
| parent | d6bf2f57493f2a94ecce9f07c8a0505a8f29e70a (diff) | |
| download | brew-774a508d1ac9e8be8a2d3cc3a753d513e1b962e3.tar.bz2 | |
audit: warn about unknown bottle modifiers
This prevents typos like `bottle :uneeded` or `bottle :disable`
Closes Homebrew/homebrew#45264.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index da07d207f..f21df6e26 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -463,6 +463,12 @@ class FormulaAuditor      end    end +  def audit_bottle_spec +    if formula.bottle_disabled? && !formula.bottle_disable_reason.valid? +      problem "Unrecognized bottle modifier" +    end +  end +    def audit_github_repository      return unless @online @@ -904,6 +910,7 @@ class FormulaAuditor      audit_specs      audit_desc      audit_homepage +    audit_bottle_spec      audit_github_repository      audit_deps      audit_conflicts  | 
