diff options
| author | Jack Nagel | 2014-10-17 22:41:26 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-10-17 22:41:26 -0500 |
| commit | 6ac5fe611624814eb31b02807ffab26a252365bd (patch) | |
| tree | 94b9634423cde522f6b91b0c4e8b9e4c3cd947ae /Library | |
| parent | 6047c8a657c6f863b538b681c5883f6a7cea65f9 (diff) | |
| download | homebrew-6ac5fe611624814eb31b02807ffab26a252365bd.tar.bz2 | |
Pull conditional out of begin block
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? |
