diff options
| author | Jack Nagel | 2012-02-16 23:43:07 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-16 23:47:40 -0600 |
| commit | 19e393e2ff088a7e0dc0b44904552c7c82f742c8 (patch) | |
| tree | b4ea0c3a35fbf0dbdaeccd90ae4d9d3aa1c6639a /Library | |
| parent | 405102ee83ea461c774cd89c5305d387adeb45b9 (diff) | |
| download | homebrew-19e393e2ff088a7e0dc0b44904552c7c82f742c8.tar.bz2 | |
audit: warn about ARGV.include? '--devel'
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index de7a9fd03..84b876884 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/ |
