diff options
| author | Jaime Marquínez Ferrándiz | 2014-12-23 10:49:06 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-23 10:14:53 +0000 |
| commit | 9f9d8cc7f75168f77af257546eefa5f90fa756e7 (patch) | |
| tree | 1c0f1413c249f76eb37c5921e4d5b49e50357f4f | |
| parent | 0ae94af448175e5403f513e2fa8ef066f0270436 (diff) | |
| download | homebrew-9f9d8cc7f75168f77af257546eefa5f90fa756e7.tar.bz2 | |
language_module_dependency: fix finding opam.
`opam list <package>` only checks if the package is available
Closes #35209.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -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 90432562d..2843c5c6c 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}} + when :ocaml then %W{/usr/bin/env opam list --installed #{@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}} |
