diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index f180a1663..c9033ce29 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -154,16 +154,17 @@ class FormulaInstaller @@attempted << f - begin - if pour_bottle? :warn => true + if pour_bottle?(:warn => true) + begin pour + rescue => e + raise if ARGV.homebrew_developer? + @pour_failed = true + onoe e.message + opoo "Bottle installation failed: building from source." + else @poured_bottle = true end - rescue => e - raise e if ARGV.homebrew_developer? - @pour_failed = true - onoe e.message - opoo "Bottle installation failed: building from source." end build_bottle_preinstall if build_bottle? |
