aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-04-01 11:34:05 -0500
committerJack Nagel2013-04-01 11:35:56 -0500
commit90500c02e493e30edef6e7c6802615e07cc37566 (patch)
tree1496d079c5bf1bccf728ebbd8c6f14de8e33241b
parentd54cea9ad321c273ff300a13216ffbc718203810 (diff)
downloadhomebrew-90500c02e493e30edef6e7c6802615e07cc37566.tar.bz2
audit: fix check for depending on requirement classes
Don't complain if it's instantiating the class so that it can pass arguments. Fixes #18883.
-rw-r--r--Library/Homebrew/cmd/audit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b9c47eba0..dfb0355df 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