aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-07 12:53:50 -0500
committerJack Nagel2014-09-07 12:53:50 -0500
commit829b6289f53c8ea34ae2752923bf76fd6bada820 (patch)
tree7523f5aaa084095485fa5ffd44ec1f0eb52516c2 /Library
parent51ffcc761ffd659028f487f5f00906718475f881 (diff)
downloadbrew-829b6289f53c8ea34ae2752923bf76fd6bada820.tar.bz2
brew-test-bot: check for hg in requirements
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