diff options
| author | Mike McQuaid | 2017-02-12 14:45:34 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2017-02-12 14:45:34 +0000 |
| commit | efc1f1c7da50e77e96a4324c9380e19848dcf03d (patch) | |
| tree | edfac55a9e9aff65c7fa814cde3bccc6acc3c4c2 /Library | |
| parent | 76dfe030c70cde3aee731e5a68b82b9ac227b89c (diff) | |
| download | brew-efc1f1c7da50e77e96a4324c9380e19848dcf03d.tar.bz2 | |
formula_installer: add env to allow unlinked deps.
We can enable this locally and/or in `brew test-bot` to see if this
code is needed any more. If we can remove it we can start doing much
more interesting things with linking keg-only, versioned formulae and
system dupe formulae.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index e8f0e4bf8..4db599079 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -171,12 +171,14 @@ class FormulaInstaller end end - unlinked_deps = recursive_formulae.select do |dep| - dep.installed? && !dep.keg_only? && !dep.linked_keg.directory? - end + unless ENV["HOMEBREW_NO_CHECK_UNLINKED_DEPENDENCIES"] + unlinked_deps = recursive_formulae.select do |dep| + dep.installed? && !dep.keg_only? && !dep.linked_keg.directory? + end - unless unlinked_deps.empty? - raise CannotInstallFormulaError, "You must `brew link #{unlinked_deps*" "}` before #{formula.full_name} can be installed" + unless unlinked_deps.empty? + raise CannotInstallFormulaError, "You must `brew link #{unlinked_deps*" "}` before #{formula.full_name} can be installed" + end end pinned_unsatisfied_deps = recursive_deps.select do |dep| |
