aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/audit.rb
diff options
context:
space:
mode:
authorJack Nagel2012-06-17 18:01:22 -0500
committerJack Nagel2012-06-17 18:01:22 -0500
commit9ebb1a3d08a3c84b8f176d2cbe5fbb4fe20716a4 (patch)
tree102cf1f6ea066e7d9887edebafa38dd0a836f70f /Library/Homebrew/cmd/audit.rb
parent6a94df360a236acf23b025fdf3ca84f76f195c94 (diff)
downloadbrew-9ebb1a3d08a3c84b8f176d2cbe5fbb4fe20716a4.tar.bz2
audit: prefer ARGV.build_head? to inspecting 'version'
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd/audit.rb')
-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