diff options
| author | Jason Tedor | 2015-12-29 10:50:19 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2015-12-29 19:17:55 +0000 |
| commit | 4b2eb86bbf5bb0ae76619e67be1bc99e8b68ee40 (patch) | |
| tree | 8caf28d867279f8aefce5c55d28e9984a3af8a8c /Library | |
| parent | cfd4c3a1815359d394a2c3cb678bb1d10223d549 (diff) | |
| download | brew-4b2eb86bbf5bb0ae76619e67be1bc99e8b68ee40.tar.bz2 | |
audit: allow whitelisting of versioned Kibana.
This commit modifies the whitelisting of the Kibama formula from the
npm audit check to allow the versioned Kibana formulae to receive the
same whitelisting.
Closes Homebrew/homebrew#47500.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -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 bcce9e570..d233afaa9 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -614,7 +614,7 @@ class FormulaAuditor problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\"" end - if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name != "kibana" + if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name !~ /^kibana(\d{2})?$/ need_npm = "\#{Formula[\"node\"].opt_libexec\}/npm/bin" problem <<-EOS.undent Please add ENV.prepend_path \"PATH\", \"#{need_npm}"\ to def install |
