diff options
| author | Jack Nagel | 2014-01-11 19:34:25 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-01-11 19:37:19 -0600 |
| commit | 92ac63fd9495e4fc75195191c36d5acebb8a6107 (patch) | |
| tree | b06b8558e424ae51d535a13d878fb417bd51fb7f /Library | |
| parent | 0106cfdefff71293320c20a6bf18033bdf53aa08 (diff) | |
| download | brew-92ac63fd9495e4fc75195191c36d5acebb8a6107.tar.bz2 | |
LanguageModuleDependency: remove code that only worked by accident
The array elements here are individual arguments to exec, not a string
to pass to the shell; this only appeared to work. In reality, `opam
list` accepts "|" as valid argument, and the command works fine without
grepping the output.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/requirements/language_module_dependency.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirements/language_module_dependency.rb b/Library/Homebrew/requirements/language_module_dependency.rb index 78dc90d15..3beaf359b 100644 --- a/Library/Homebrew/requirements/language_module_dependency.rb +++ b/Library/Homebrew/requirements/language_module_dependency.rb @@ -25,7 +25,7 @@ class LanguageModuleDependency < Requirement when :jruby then %W{/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'} when :lua then %W{/usr/bin/env luarocks show #{@import_name}} when :node then %W{/usr/bin/env node -e require('#{@import_name}');} - when :ocaml then %W{/usr/bin/env opam list #{@import_name} | grep #{@import_name}} + when :ocaml then %W{/usr/bin/env opam list #{@import_name}} when :perl then %W{/usr/bin/env perl -e use\ #{@import_name}} when :python then %W{/usr/bin/env python -c import\ #{@import_name}} when :python3 then %W{/usr/bin/env python3 -c import\ #{@import_name}} |
