aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-02-18 07:28:06 +0000
committerMike McQuaid2013-03-01 17:49:09 +0000
commit443bf9f287090d5c2d309e86b2673b57744dab8c (patch)
treebe1c1a33b074156131ab7eebd6c5ea97e3b7c5c5
parent360af367a816fa2f7b736a270decdd0626f02f22 (diff)
downloadbrew-443bf9f287090d5c2d309e86b2673b57744dab8c.tar.bz2
Build from source on bottle pour failure.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Homebrew/formula_installer.rb14
1 files changed, 11 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index ebe95427a..6eddb2ff9 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