Merge pull request #1992 from MikeMcQuaid/no-check-unlinked-dependencies

formula_installer: add env to allow unlinked deps.
This commit is contained in:
Mike McQuaid 2017-02-12 16:21:39 +00:00 committed by GitHub
commit 08c7561639

View File

@ -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|