aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index 8ffaf345f..4393faa7c 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -326,10 +326,13 @@ class Test
installed_gcc = false
deps = formula_object.stable.deps.to_a
+ reqs = formula_object.stable.requirements.to_a
if formula_object.devel && !ARGV.include?('--HEAD')
deps |= formula_object.devel.deps.to_a
+ reqs |= formula_object.devel.requirements.to_a
end
+
begin
deps.each {|f| CompilerSelector.new(f.to_formula).compiler }
CompilerSelector.new(formula_object).compiler
@@ -345,7 +348,7 @@ class Test
return
end
- if deps.any? { |d| d.name == "mercurial" && d.build? }
+ if (deps | reqs).any? { |d| d.name == "mercurial" && d.build? }
test "brew", "install", "mercurial"
end