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.
This commit is contained in:
Jack Nagel 2014-01-11 19:34:25 -06:00
parent 0106cfdeff
commit 92ac63fd94

View File

@ -25,7 +25,7 @@ class LanguageModuleDependency < Requirement
when :jruby then %W{/usr/bin/env jruby -rubygems -e require\ '#{@import_name}'} 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 :lua then %W{/usr/bin/env luarocks show #{@import_name}}
when :node then %W{/usr/bin/env node -e require('#{@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 :perl then %W{/usr/bin/env perl -e use\ #{@import_name}}
when :python then %W{/usr/bin/env python -c import\ #{@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}} when :python3 then %W{/usr/bin/env python3 -c import\ #{@import_name}}