From 443bf9f287090d5c2d309e86b2673b57744dab8c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 18 Feb 2013 07:28:06 +0000 Subject: [PATCH] Build from source on bottle pour failure. Signed-off-by: Mike McQuaid --- Library/Homebrew/formula_installer.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index ebe95427a2..6eddb2ff99 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -92,9 +92,17 @@ class FormulaInstaller @@attempted << f - if pour_bottle? - pour - else + poured_bottle = false + begin + if pour_bottle? + pour + poured_bottle = true + end + rescue + opoo "Bottle installation failed: building from source." + end + + unless poured_bottle build clean end