diff options
| author | Jack Nagel | 2012-06-17 18:01:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-06-17 18:01:22 -0500 |
| commit | d5792c89463fb2f9f1dcafa03ae41a8bf4128a68 (patch) | |
| tree | 5d332e65cd279f8e59b41891e1eb354720d3961a /Library | |
| parent | 0bfe48f5d3543683d94ab70cb0fb940ca106e470 (diff) | |
| download | homebrew-d5792c89463fb2f9f1dcafa03ae41a8bf4128a68.tar.bz2 | |
audit: prefer ARGV.build_head? to inspecting 'version'
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index cb7cb2510..4e8fd2f2e 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -133,6 +133,10 @@ def audit_formula_text name, text problems << " * Use ENV instead of invoking '#{$1}' to modify the environment" end + if text =~ /version == ['"]HEAD['"]/ + problems << " * Use 'ARGV.build_head?' instead of inspecting 'version'" + end + return problems end |
