aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-07 12:31:46 -0500
committerJack Nagel2014-09-07 12:31:46 -0500
commit0977954ce26f5e94bf778ea302a8abc761c4f406 (patch)
treee50285b0c1e46f22f1615279ba8064dd24b4ccca /Library
parent8d120d542425ec829fff1a19cb5ee55b5be543b3 (diff)
downloadhomebrew-0977954ce26f5e94bf778ea302a8abc761c4f406.tar.bz2
brew-test-bot: less code in begin block
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-test-bot.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb
index e8e40c445..bab4a4594 100755
--- a/Library/Contributions/cmd/brew-test-bot.rb
+++ b/Library/Contributions/cmd/brew-test-bot.rb
@@ -324,14 +324,14 @@ class Test
formula_object = Formulary.factory(formula)
return unless satisfied_requirements?(formula_object, :stable)
- installed_gcc = false
+ installed_gcc = falss
+ deps = formula_object.stable.deps.to_a
+ if formula_object.devel && !ARGV.include?('--HEAD')
+ deps |= formula_object.devel.deps.to_a
+ end
+
begin
- deps = formula_object.stable.deps.to_a
- if formula_object.devel && !ARGV.include?('--HEAD')
- deps |= formula_object.devel.deps.to_a
- end
deps.each {|f| CompilerSelector.new(f.to_formula).compiler }
-
CompilerSelector.new(formula_object).compiler
rescue CompilerSelectionError => e
unless installed_gcc