From 524379e89785865370dab5300a6e566bef0a0b81 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 12 May 2018 10:56:15 -0400 Subject: [PATCH] formula: improve dependencies hash output. It doesn't really make any sense for the `dependencies` hash to include all optional, recommended and build dependencies when these are already separately output. --- Library/Homebrew/formula.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index c94d7aa2c8..1d5a5b25d5 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1564,7 +1564,7 @@ class Formula "keg_only" => keg_only?, "options" => [], "build_dependencies" => dependencies.select(&:build?).map(&:name).uniq, - "dependencies" => dependencies.map(&:name).uniq, + "dependencies" => dependencies.reject(&:optional?).reject(&:recommended?).reject(&:build?).map(&:name).uniq, "recommended_dependencies" => dependencies.select(&:recommended?).map(&:name).uniq, "optional_dependencies" => dependencies.select(&:optional?).map(&:name).uniq, "requirements" => [],