diff options
| author | Jack Nagel | 2013-04-01 11:34:05 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-01 11:35:56 -0500 |
| commit | 90500c02e493e30edef6e7c6802615e07cc37566 (patch) | |
| tree | 1496d079c5bf1bccf728ebbd8c6f14de8e33241b | |
| parent | d54cea9ad321c273ff300a13216ffbc718203810 (diff) | |
| download | homebrew-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.rb | 2 |
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 |
