aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-04-01 11:34:05 -0500
committerJack Nagel2013-04-01 11:35:56 -0500
commitad5b128fc7b4a36999cce97e62d8939fcf829655 (patch)
tree6588793394d79105c2de93430878190d0bc0eecb /Library/Homebrew
parent2befa0fd5c94e617d99672f75b4747fa8d43f34f (diff)
downloadbrew-ad5b128fc7b4a36999cce97e62d8939fcf829655.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 Homebrew/homebrew#18883.
Diffstat (limited to 'Library/Homebrew')
-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