aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 2f4562449..bf7c4f335 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -440,6 +440,12 @@ class Formula
end
end
+ def recursive_requirements
+ reqs = recursive_deps.map { |dep| dep.requirements }.to_set
+ reqs << requirements
+ reqs.flatten
+ end
+
protected
# Pretty titles the command and buffers stdout/stderr