aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-06-17 18:01:22 -0500
committerJack Nagel2012-06-17 18:01:22 -0500
commitd5792c89463fb2f9f1dcafa03ae41a8bf4128a68 (patch)
tree5d332e65cd279f8e59b41891e1eb354720d3961a /Library
parent0bfe48f5d3543683d94ab70cb0fb940ca106e470 (diff)
downloadhomebrew-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-xLibrary/Homebrew/cmd/audit.rb4
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