Merge pull request #1992 from MikeMcQuaid/no-check-unlinked-dependencies
formula_installer: add env to allow unlinked deps.
This commit is contained in:
commit
08c7561639
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user