aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 884385996..3d8e26f44 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -1244,6 +1244,8 @@ class Formula
"outdated" => outdated?,
"keg_only" => keg_only?,
"dependencies" => deps.map(&:name).uniq,
+ "recommended_dependencies" => deps.select(&:recommended?).map(&:name).uniq,
+ "optional_dependencies" => deps.select(&:optional?).map(&:name).uniq,
"conflicts_with" => conflicts.map(&:name),
"caveats" => caveats
}