From 856fe669e2fa123ef97b7a27afd216c0c26b1818 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 16 Feb 2012 23:43:07 -0600 Subject: [PATCH] audit: warn about ARGV.include? '--devel' Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index de7a9fd034..84b876884e 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -84,8 +84,8 @@ def audit_formula_text name, text problems << " * Trailing whitespace was found." end - if text =~ /if\s+ARGV\.include\?\s+'--HEAD'/ - problems << " * Use \"if ARGV.build_head?\" instead" + if text =~ /if\s+ARGV\.include\?\s+'--(HEAD|devel)'/ + problems << " * Use \"if ARGV.build_#{$1.downcase}?\" instead" end if text =~ /make && make/