diff options
| author | Mike McQuaid | 2013-02-18 07:28:06 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-01 17:49:09 +0000 |
| commit | 1e4af27b1de59cab32e89f745d0d10ea29d5b15a (patch) | |
| tree | f14ee366b033738093502f7121e780fd84d4ac33 /Library | |
| parent | f99e05bb49281765b153f798112e602602eb1e4e (diff) | |
| download | homebrew-1e4af27b1de59cab32e89f745d0d10ea29d5b15a.tar.bz2 | |
Build from source on bottle pour failure.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 14 |
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 |
