Skip to content

Commit

Permalink
Merge pull request #2954 from ilovezfs/allow-install-mixed-build-depe…
Browse files Browse the repository at this point in the history
…ndency-tree

formula_installer: allow version mismatched build deps
  • Loading branch information
ilovezfs committed Jul 27, 2017
2 parents 021729e + deac8f1 commit 867590b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def check_install_sanity

recursive_deps = formula.recursive_dependencies
recursive_formulae = recursive_deps.map(&:to_formula)
recursive_runtime_deps = formula.recursive_dependencies.reject(&:build?)
recursive_runtime_formulae = recursive_runtime_deps.map(&:to_formula)

recursive_dependencies = []
recursive_formulae.each do |dep|
Expand All @@ -176,7 +178,7 @@ def check_install_sanity

version_hash = {}
version_conflicts = Set.new
recursive_formulae.each do |f|
recursive_runtime_formulae.each do |f|
name = f.name
unversioned_name, = name.split("@")
version_hash[unversioned_name] ||= Set.new
Expand Down

0 comments on commit 867590b

Please sign in to comment.