From ad5b128fc7b4a36999cce97e62d8939fcf829655 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 1 Apr 2013 11:34:05 -0500 Subject: [PATCH] audit: fix check for depending on requirement classes Don't complain if it's instantiating the class so that it can pass arguments. Fixes Homebrew/homebrew#18883. --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b9c47eba01..dfb0355df2 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -434,7 +434,7 @@ class FormulaAuditor problem "`skip_clean :all` is deprecated; brew no longer strips symbols" end - if text =~ /depends_on (.*)\.new\s*[^(]/ + if text =~ /depends_on (.*)\.new$/ problem "`depends_on` can take requirement classes directly" end end