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.
This commit is contained in:
parent
76dfe030c7
commit
efc1f1c7da
@ -171,12 +171,14 @@ class FormulaInstaller
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
unlinked_deps = recursive_formulae.select do |dep|
|
unless ENV["HOMEBREW_NO_CHECK_UNLINKED_DEPENDENCIES"]
|
||||||
dep.installed? && !dep.keg_only? && !dep.linked_keg.directory?
|
unlinked_deps = recursive_formulae.select do |dep|
|
||||||
end
|
dep.installed? && !dep.keg_only? && !dep.linked_keg.directory?
|
||||||
|
end
|
||||||
|
|
||||||
unless unlinked_deps.empty?
|
unless unlinked_deps.empty?
|
||||||
raise CannotInstallFormulaError, "You must `brew link #{unlinked_deps*" "}` before #{formula.full_name} can be installed"
|
raise CannotInstallFormulaError, "You must `brew link #{unlinked_deps*" "}` before #{formula.full_name} can be installed"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
pinned_unsatisfied_deps = recursive_deps.select do |dep|
|
pinned_unsatisfied_deps = recursive_deps.select do |dep|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user