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 | a0b36563ea10ffbac862af584b84e9e1f19a1ae6 (patch) | |
| tree | 09b89ccb7782fcc5352f343f18d339087a6a17e2 /Library | |
| parent | 62addcfce8d942eaa96f48f80b8b82ad7d934853 (diff) | |
| download | brew-a0b36563ea10ffbac862af584b84e9e1f19a1ae6.tar.bz2 | |
language_module_dependency: fix finding opam.
`opam list <package>` only checks if the package is available
Closes Homebrew/homebrew#35209.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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 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}} |
