From b5f83e60f9652465822a1723a19b3fa92a38c6f2 Mon Sep 17 00:00:00 2001
From: Jack Nagel <jacknagel@gmail.com>
Date: Mon, 2 Dec 2013 12:44:28 -0600
Subject: [PATCH] Re-check requirements if a bottle installation fails

---
 Library/Homebrew/formula_installer.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 0a0f61aeb9..5f43919c7d 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -141,7 +141,10 @@ class FormulaInstaller
     build_bottle_preinstall if ARGV.build_bottle?
 
     unless @poured_bottle
-      install_dependencies if @pour_failed && !ignore_deps
+      if @pour_failed and not ignore_deps
+        check_requirements
+        install_dependencies
+      end
       build
       clean
     end
-- 
GitLab