From 53cf970312fb98d53fa5859bc039e453b60274cc Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 14 Aug 2012 21:45:08 -0500 Subject: build: expand requirements recursively when modifying ENV Signed-off-by: Jack Nagel --- Library/Homebrew/formula.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Homebrew/formula.rb') 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 -- cgit v1.2.3