aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorElliot Saba2016-06-11 17:03:08 -0700
committerMartin Afanasjew2016-06-12 02:03:08 +0200
commite9cc2a5d88da6d1719763a26c1fc455c51e2c3db (patch)
tree1b53b44b0288f5f3e318fe1be5fcc528cf4dbb40 /Library
parent6367508454ccd53d742f104d87ac8347efa7f441 (diff)
downloadbrew-e9cc2a5d88da6d1719763a26c1fc455c51e2c3db.tar.bz2
Add "build_dependencies" key to JSON output (#340)
This gives the JSON output the same type of information as `recommended_dependencies` or `optional_dependencies`, but for those marked `:build` in the formula.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c621d6c37..ebd23768d 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -1256,6 +1256,7 @@ class Formula
"dependencies" => deps.map(&:name).uniq,
"recommended_dependencies" => deps.select(&:recommended?).map(&:name).uniq,
"optional_dependencies" => deps.select(&:optional?).map(&:name).uniq,
+ "build_dependencies" => deps.select(&:build?).map(&:name).uniq,
"conflicts_with" => conflicts.map(&:name),
"caveats" => caveats
}